Changeset 45407 for titan/plugins
- Timestamp:
- 02/15/21 04:08:38 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/satipclient/satipclient.h
r45406 r45407 7 7 struct skin* satipclient = getscreen("satipclientsettings"); 8 8 struct skin* listbox = getscreennode(satipclient, "listbox"); 9 char* tmpstr = NULL, *satipclientstop = NULL, *satipclientstart = NULL, *satipclientscan = NULL, * cmd = NULL;9 char* tmpstr = NULL, *satipclientstop = NULL, *satipclientstart = NULL, *satipclientscan = NULL, *satipclientrun = NULL, *cmd = NULL; 10 10 struct skin* tmp = NULL; 11 11 struct skin* node = NULL; … … 14 14 satipclientstart = ostrcat("/etc/init.d/satipclient start", NULL, 0, 0); 15 15 satipclientscan = ostrcat(createpluginpath("/satipclient/files/scan.py", 0), NULL, 0, 0); 16 cmd = ostrcat(createpluginpath("/satipclient/files/run.sh", 0), " ", 0, 0); 17 cmd = ostrcat(cmd, satipclientscan, 1, 0); 16 satipclientrun = ostrcat(createpluginpath("/satipclient/files/run.sh", 0), NULL, 0, 0); 18 17 19 18 addscreenrc(satipclient, listbox); … … 81 80 else if(rcret == getrcconfigint("rcyellow", NULL)) 82 81 { 82 cmd = ostrcat(satipclientrun, " ", 0, 0); 83 cmd = ostrcat(cmd, satipclientscan, 1, 0); 83 84 debug(10, "cmd: %s", cmd); 84 85 tmpstr = command(cmd); 86 free(cmd), cmd = NULL; 85 87 86 88 debug(10, "tmpstr: %s", tmpstr); … … 100 102 free(satipclientstop), satipclientstop = NULL; 101 103 free(satipclientscan), satipclientscan = NULL; 102 free(cmd), cmd = NULL;103 104 104 105 delownconfigtmpall();
Note: See TracChangeset
for help on using the changeset viewer.