X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=common%2Ffiles%2Fcfgreader.c;fp=common%2Ffiles%2Fcfgreader.c;h=f7f35b90da93fdeab046fbc1c3e32e73bc249053;hp=ad257087afbf2c585e5d2587c96d3078794e7e17;hb=82bcbc2300f764bcb3551b152a0a961f4fef5e66;hpb=975a83d253eea8aa37bf3dfd7e026df3027db4ff diff --git a/common/files/cfgreader.c b/common/files/cfgreader.c index ad25708..f7f35b9 100644 --- a/common/files/cfgreader.c +++ b/common/files/cfgreader.c @@ -50,7 +50,7 @@ static struct CFG_Header *CFG_ReadFile(char *filename) /* Open file */ if ((handle = fopen(filename, "r")) == NULL) { #ifdef DEBUG - fprintf( stderr, "CFG_ReadFile - open %s: %s\n", filename, strerror(errno)); +// fprintf( stderr, "CFG_ReadFile - open %s: %s\n", filename, strerror(errno)); #endif /* DEBUG */ return NULL; } @@ -106,7 +106,7 @@ static struct CFG_Header *CFG_ReadFile(char *filename) cfg_info = heading; #ifdef DEBUG - fprintf(stderr, "Added new section %s\n", heading->section); +// fprintf(stderr, "Added new section %s\n", heading->section); #endif /* Go on to next line */ @@ -155,7 +155,7 @@ static struct CFG_Header *CFG_ReadFile(char *filename) cfg_info->entries = entry; #ifdef DEBUG - fprintf(stderr, "Adding key/value %s/%s\n", entry->key, entry->value); +// fprintf(stderr, "Adding key/value %s/%s\n", entry->key, entry->value); #endif /* Go on to next line */ continue; @@ -267,7 +267,7 @@ struct CFG_Header *CFG_FindGnokiirc() if ((cfg_info = CFG_ReadFile("/etc/gnokiirc")) == NULL) { /* That failed too so exit */ #ifdef DEBUG - fprintf(stderr, _("Couldn't open %s or /etc/gnokiirc. Using defaults...\n"), rcfile); +// fprintf(stderr, _("Couldn't open %s or /etc/gnokiirc. Using defaults...\n"), rcfile); #endif /* DEBUG */ return NULL; } @@ -278,7 +278,7 @@ struct CFG_Header *CFG_FindGnokiirc() if ((cfg_info = CFG_ReadFile("gnokiirc")) == NULL) { /* That failed too so exit */ #ifdef DEBUG - fprintf(stderr, _("Couldn't open %s or gnokiirc. Using defaults...\n"), rcfile); +// fprintf(stderr, _("Couldn't open %s or gnokiirc. Using defaults...\n"), rcfile); #endif /* DEBUG */ return NULL; }