comparison th_config.c @ 215:659b8229d015

Silence some warnings on OpenBSD.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 21 Nov 2010 04:12:16 +0200
parents f7b571debd81
children 0db02b8d2d11
comparison
equal deleted inserted replaced
214:da539f54c9b0 215:659b8229d015
225 225
226 static void th_cfg_error(conffile_t *f, const char *fmt, ...) 226 static void th_cfg_error(conffile_t *f, const char *fmt, ...)
227 { 227 {
228 va_list ap; 228 va_list ap;
229 va_start(ap, fmt); 229 va_start(ap, fmt);
230 fprintf(stderr, "%s: '%s', line #%d: ", th_prog_name, f->filename, f->line); 230 fprintf(stderr, "%s: '%s', line #%d: ", th_prog_name, f->filename, (unsigned int) f->line);
231 vfprintf(stderr, fmt, ap); 231 vfprintf(stderr, fmt, ap);
232 va_end(ap); 232 va_end(ap);
233 } 233 }
234 234
235 235