Changeset 2408 for pjproject/trunk/pjsip-apps/src/samples/siprtp.c
- Timestamp:
- Jan 1, 2009 10:08:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/siprtp.c
r2394 r2408 1863 1863 1864 1864 printf("%s (empty to cancel): ", title); fflush(stdout); 1865 fgets(buf, len, stdin); 1865 if (fgets(buf, len, stdin) == NULL) 1866 return PJ_FALSE; 1866 1867 1867 1868 /* Remove trailing newlines. */ … … 1899 1900 for (;;) { 1900 1901 printf(">>> "); fflush(stdout); 1901 fgets(input1, sizeof(input1), stdin); 1902 if (fgets(input1, sizeof(input1), stdin) == NULL) { 1903 puts("EOF while reading stdin, will quit now.."); 1904 break; 1905 } 1902 1906 1903 1907 switch (input1[0]) { … … 2021 2025 2022 2026 if (log_file) { 2023 fwrite(buffer, len, 1, log_file); 2027 int count = fwrite(buffer, len, 1, log_file); 2028 PJ_UNUSED_ARG(count); 2024 2029 fflush(log_file); 2025 2030 }
Note: See TracChangeset
for help on using the changeset viewer.