Changeset 4537 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_legacy.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_legacy.c
r4489 r4537 62 62 * Input URL. 63 63 */ 64 static void ui_input_url(const char *title, char *buf, int len,64 static void ui_input_url(const char *title, char *buf, pj_size_t len, 65 65 input_result *result) 66 66 { … … 80 80 81 81 fflush(stdout); 82 if (fgets(buf, len, stdin) == NULL)82 if (fgets(buf, (int)len, stdin) == NULL) 83 83 return; 84 84 len = strlen(buf); … … 99 99 if (pj_isdigit(*buf) || *buf=='-') { 100 100 101 inti;101 unsigned i; 102 102 103 103 if (*buf=='-') … … 144 144 145 145 printf("%s (empty to cancel): ", title); fflush(stdout); 146 if (fgets(buf, len, stdin) == NULL)146 if (fgets(buf, (int)len, stdin) == NULL) 147 147 return PJ_FALSE; 148 148 … … 1675 1675 char buf[128]; 1676 1676 1677 keystroke_help( current_call);1677 keystroke_help(); 1678 1678 1679 1679 for (;;) { … … 1689 1689 */ 1690 1690 /* Reopen stdin/stdout/stderr to /dev/console */ 1691 #if defined(PJ_WIN32) && PJ_WIN32!=0 && \ 1691 #if ((defined(PJ_WIN32) && PJ_WIN32!=0) || \ 1692 (defined(PJ_WIN64) && PJ_WIN64!=0)) && \ 1692 1693 (!defined(PJ_WIN32_WINCE) || PJ_WIN32_WINCE==0) 1693 1694 if (freopen ("CONIN$", "r", stdin) == NULL) { … … 1848 1849 break; 1849 1850 1850 case 's': 1851 ui_sleep(menuin); 1852 break; 1851 case 's': 1852 if (pj_ansi_strnicmp(menuin, "sleep", 5)==0) { 1853 ui_sleep(menuin); 1854 break; 1855 } 1853 1856 /* Continue below */ 1854 1857
Note: See TracChangeset
for help on using the changeset viewer.