summaryrefslogtreecommitdiff
path: root/vchat-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'vchat-client.c')
-rwxr-xr-xvchat-client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vchat-client.c b/vchat-client.c
index d5960a5..71a596c 100755
--- a/vchat-client.c
+++ b/vchat-client.c
@@ -171,7 +171,7 @@ static void parseknownhosts(char *line) {
171 171
172/* load config file */ 172/* load config file */
173void 173void
174loadcfg (char *file,void (*lineparser) (char *)) 174loadcfg (char *file,int complain, void (*lineparser) (char *))
175{ 175{
176 FILE *fh; 176 FILE *fh;
177#define BUFSIZE 4096 177#define BUFSIZE 4096
@@ -186,7 +186,7 @@ loadcfg (char *file,void (*lineparser) (char *))
186 free( tildex ); 186 free( tildex );
187 187
188 if (!fh) { 188 if (!fh) {
189 snprintf (errstr, TMPSTRSIZE, "Can't open config-file \"%s\": %s.", file, strerror(errno)); 189 if( complain ) snprintf (errstr, TMPSTRSIZE, "Can't open config-file \"%s\": %s.", file, strerror(errno));
190 return; 190 return;
191 } 191 }
192 192
@@ -202,13 +202,13 @@ loadcfg (char *file,void (*lineparser) (char *))
202void 202void
203loadconfig (char *file) 203loadconfig (char *file)
204{ 204{
205 loadcfg(file,parsecfg); 205 loadcfg(file,1,parsecfg);
206} 206}
207 207
208void 208void
209loadformats (char *file) 209loadformats (char *file)
210{ 210{
211 loadcfg(file,parseformats); 211 loadcfg(file,0,parseformats);
212} 212}
213 213
214/* get-format-string */ 214/* get-format-string */