Changeset 8190 for trunk/Ohana/src/opihi/cmd.data/queuepush.c
- Timestamp:
- Aug 5, 2006, 3:52:41 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/queuepush.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/queuepush.c
r7917 r8190 3 3 int queuepush (int argc, char **argv) { 4 4 5 int N, Unique, Replace, Key; 5 char *Key; 6 int N, Unique, Replace; 6 7 Queue *queue; 7 8 … … 18 19 } 19 20 20 Key = -1;21 Key = NULL; 21 22 if ((N = get_argument (argc, argv, "-key"))) { 22 23 remove_argument (N, &argc, argv); 23 Key = atoi(argv[N]);24 Key = strcreate (argv[N]); 24 25 remove_argument (N, &argc, argv); 25 26 } … … 42 43 PushQueue (queue, argv[2]); 43 44 } 45 46 if (Key != NULL) free (Key); 44 47 return (TRUE); 45 48 }
Note:
See TracChangeset
for help on using the changeset viewer.
