Changeset 8129 for trunk/Ohana/src/opihi/pantasks/TaskOps.c
- Timestamp:
- Aug 4, 2006, 2:19:21 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/TaskOps.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/TaskOps.c
r7917 r8129 116 116 gprint (GP_LOG, "\n\n"); 117 117 118 gprint (GP_LOG, "\n options: "); 119 for (i = 0; i < task[0].optc; i++) { 120 gprint (GP_LOG, "%s ", task[0].optv[i]); 121 } 122 gprint (GP_LOG, "\n\n"); 123 118 124 if (task[0].host == NULL) { 119 125 gprint (GP_LOG, " task runs locally\n"); … … 169 175 free (task[0].argv); 170 176 } 177 if (task[0].optv != NULL) { 178 for (i = 0; i < task[0].optc; i++) { 179 free (task[0].optv[i]); 180 } 181 free (task[0].optv); 182 } 171 183 if (task[0].exec != NULL) { 172 184 FreeMacro (task[0].exec); … … 209 221 NewTask[0].argc = 0; 210 222 NewTask[0].argv = NULL; 223 224 NewTask[0].optc = 0; 225 NewTask[0].optv = NULL; 211 226 212 227 NewTask[0].exec = NULL; … … 346 361 if (!strcasecmp (command, "TRANGE")) hash = TASK_TRANGE; 347 362 if (!strcasecmp (command, "COMMAND")) hash = TASK_COMMAND; 363 if (!strcasecmp (command, "OPTIONS")) hash = TASK_OPTIONS; 348 364 if (!strcasecmp (command, "PERIODS")) hash = TASK_PERIODS; 349 365 if (!strcasecmp (command, "TASK.EXIT")) hash = TASK_EXIT;
Note:
See TracChangeset
for help on using the changeset viewer.
