@@ -1079,7 +1079,7 @@ static void console_init()
1079
1079
"Remove from tail of queue. Optionally compare to expected value str" ,
1080
1080
"[str]" );
1081
1081
ADD_COMMAND (reverse , "Reverse queue" , "" );
1082
- ADD_COMMAND (sort , "Sort queue in ascending/descening order" , "" );
1082
+ ADD_COMMAND (sort , "Sort queue in ascending/descending order" , "" );
1083
1083
ADD_COMMAND (size , "Compute queue size n times (default: n == 1)" , "[n]" );
1084
1084
ADD_COMMAND (show , "Show queue contents" , "" );
1085
1085
ADD_COMMAND (dm , "Delete middle node in queue" , "" );
@@ -1165,11 +1165,11 @@ static bool q_quit(int argc, char *argv[])
1165
1165
1166
1166
static void usage (char * cmd )
1167
1167
{
1168
- printf ("Usage: %s [-h] [-f IFILE ][-v VLEVEL ][-l LFILE] \n" , cmd );
1168
+ printf ("Usage: %s [-h] [-f FILE ][-v LEVEL ][-l LOG \n" , cmd );
1169
1169
printf ("\t-h Print this information\n" );
1170
- printf ("\t-f IFILE Read commands from IFILE \n" );
1171
- printf ("\t-v VLEVEL Set verbosity level\n" );
1172
- printf ("\t-l LFILE Echo results to LFILE \n" );
1170
+ printf ("\t-f FILE Read commands from FILE \n" );
1171
+ printf ("\t-v LEVEL Set verbosity level\n" );
1172
+ printf ("\t-l LOG Echo results to LOG \n" );
1173
1173
exit (0 );
1174
1174
}
1175
1175
@@ -1208,7 +1208,6 @@ bool commit_exists(const char *commit_hash)
1208
1208
posix_spawn_file_actions_t actions ;
1209
1209
if (posix_spawn_file_actions_init (& actions ) != 0 ) {
1210
1210
/* Error initializing spawn file actions */
1211
- perror ("posix_spawn_file_actions_init" );
1212
1211
close (pipefd [0 ]);
1213
1212
close (pipefd [1 ]);
1214
1213
return false;
@@ -1217,7 +1216,6 @@ bool commit_exists(const char *commit_hash)
1217
1216
/* Redirect child's stdout to the pipe's write end */
1218
1217
if (posix_spawn_file_actions_adddup2 (& actions , pipefd [1 ], STDOUT_FILENO ) !=
1219
1218
0 ) {
1220
- perror ("posix_spawn_file_actions_adddup2" );
1221
1219
posix_spawn_file_actions_destroy (& actions );
1222
1220
close (pipefd [0 ]);
1223
1221
close (pipefd [1 ]);
@@ -1227,7 +1225,6 @@ bool commit_exists(const char *commit_hash)
1227
1225
/* Close unused pipe ends in the child */
1228
1226
if (posix_spawn_file_actions_addclose (& actions , pipefd [0 ]) != 0 ||
1229
1227
posix_spawn_file_actions_addclose (& actions , pipefd [1 ]) != 0 ) {
1230
- perror ("posix_spawn_file_actions_addclose" );
1231
1228
posix_spawn_file_actions_destroy (& actions );
1232
1229
close (pipefd [0 ]);
1233
1230
close (pipefd [1 ]);
0 commit comments