Changeset 563 for pjproject/trunk/pjsip/src/test-pjsip/main.c
- Timestamp:
- Jun 28, 2006 4:46:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/main.c
r111 r563 21 21 #include <string.h> 22 22 #include <stdlib.h> 23 24 extern const char *system_name; 23 25 24 26 static void usage() … … 58 60 } 59 61 log_level = atoi(*opt_arg); 62 } else if (strcmp(*opt_arg, "-s") == 0 || 63 strcmp(*opt_arg, "--system") == 0) 64 { 65 ++opt_arg; 66 if (!opt_arg) { 67 usage(); 68 return 1; 69 } 70 system_name = *opt_arg; 60 71 } else { 61 72 usage(); … … 68 79 retval = test_main(); 69 80 70 if ( argc != 1) {81 if (interractive) { 71 82 char s[10]; 72 printf("<Press ENTER to quit>\n"); 83 printf("<Press ENTER to quit>\n"); fflush(stdout); 73 84 fgets(s, sizeof(s), stdin); 74 85 }
Note: See TracChangeset
for help on using the changeset viewer.