[UDP-HTTP] Display a message if called with args

This is mainly to avoid a "unused variable" message when compiling.
This commit is contained in:
Matteo Cypriani 2011-08-22 17:18:28 +02:00
parent 8cc05d718c
commit a7bfa7eb07
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@ int main(int argc, char *argv[])
program_name = argv[0] ;
owl_run = owl_true ;
if (argc > 1)
fprintf(stderr,
"Sorry, this program does not take any argument yet.\n") ;
/* Set up signal handlers */
action.sa_flags = 0 ;
sigemptyset(&action.sa_mask) ;