diff options
Diffstat (limited to 'vchat-client.c')
-rwxr-xr-x | vchat-client.c | 8 |
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 */ |
173 | void | 173 | void |
174 | loadcfg (char *file,void (*lineparser) (char *)) | 174 | loadcfg (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 *)) | |||
202 | void | 202 | void |
203 | loadconfig (char *file) | 203 | loadconfig (char *file) |
204 | { | 204 | { |
205 | loadcfg(file,parsecfg); | 205 | loadcfg(file,1,parsecfg); |
206 | } | 206 | } |
207 | 207 | ||
208 | void | 208 | void |
209 | loadformats (char *file) | 209 | loadformats (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 */ |