/[gnokii]/gnokii/common/cfgreader.c
ViewVC logotype

Diff of /gnokii/common/cfgreader.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.61 by pkot, Thu Jun 2 21:55:53 2005 UTC revision 1.62 by pkot, Sun Jul 24 18:58:13 2005 UTC
# Line 227  struct gn_cfg_header *cfg_file_read(cons Line 227  struct gn_cfg_header *cfg_file_read(cons
227          line_begin = lines;          line_begin = lines;
228          num_lines = 0;          num_lines = 0;
229          copied = 0;          copied = 0;
230    
231          while ((pos = strchr(line_begin, '\n')) && copied < read) {          while ((pos = strchr(line_begin, '\n')) && copied < read) {
232                  char *buf;                  char *buf;
233    
# Line 641  API int gn_cfg_phone_load(const char *in Line 642  API int gn_cfg_phone_load(const char *in
642  {  {
643          char section[256];          char section[256];
644    
645          if (iname == NULL || *iname == '\0')          if (iname == NULL || *iname == '\0') {
646                  state->config = gn_config_global;                  state->config = gn_config_global;
647          else {          } else {
648                  snprintf(section, sizeof(section), "phone_%s", iname);                  snprintf(section, sizeof(section), "phone_%s", iname);
649                  if (!cfg_psection_load(&state->config, section, &gn_config_global))                  if (!cfg_psection_load(&state->config, section, &gn_config_global))
650                          return false;                          return false;

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26