Changeset 4851
- Timestamp:
- May 23, 2014 9:29:09 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_legacy.c
r4739 r4851 1614 1614 } 1615 1615 1616 static void ui_write_settings( )1616 static void ui_write_settings(const char *filename) 1617 1617 { 1618 1618 char settings[2000]; 1619 1619 int len; 1620 char buf[128];1621 1620 1622 1621 len = write_settings(&app_config, settings, sizeof(settings)); … … 1627 1626 pj_status_t status; 1628 1627 1629 status = pj_file_open(app_config.pool, buf, PJ_O_WRONLY, &fd);1628 status = pj_file_open(app_config.pool, filename, PJ_O_WRONLY, &fd); 1630 1629 if (status != PJ_SUCCESS) { 1631 1630 pjsua_perror(THIS_FILE, "Unable to open file", status); … … 1635 1634 pj_file_close(fd); 1636 1635 1637 printf("Settings successfully written to '%s'\n", buf);1636 printf("Settings successfully written to '%s'\n", filename); 1638 1637 } 1639 1638 } … … 1908 1907 case 'f': 1909 1908 if (simple_input("Enter output filename", buf, sizeof(buf))) { 1910 ui_write_settings( );1909 ui_write_settings(buf); 1911 1910 } 1912 1911 break;
Note: See TracChangeset
for help on using the changeset viewer.