version 1.11, 2002/02/16 21:27:50 |
version 1.12, 2002/02/19 19:39:38 |
|
|
static char *rcsid = "$OpenBSD$"; |
static char *rcsid = "$OpenBSD$"; |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
#include <stdarg.h> |
#include "defs.h" |
#include "defs.h" |
|
|
#define NHOSTS 100 |
#define NHOSTS 100 |
|
|
printf(")\n"); |
printf(")\n"); |
} |
} |
|
|
#ifdef __STDC__ |
|
#include <stdarg.h> |
|
#else |
|
#include <varargs.h> |
|
#endif |
|
|
|
void |
void |
#ifdef __STDC__ |
|
warn(const char *fmt, ...) |
warn(const char *fmt, ...) |
#else |
|
warn(fmt, va_alist) |
|
char *fmt; |
|
va_dcl |
|
#endif |
|
{ |
{ |
extern int yylineno; |
extern int yylineno; |
va_list ap; |
va_list ap; |
#ifdef __STDC__ |
|
va_start(ap, fmt); |
va_start(ap, fmt); |
#else |
|
va_start(ap); |
|
#endif |
|
(void)fprintf(stderr, "rdist: line %d: Warning: ", yylineno); |
(void)fprintf(stderr, "rdist: line %d: Warning: ", yylineno); |
(void)vfprintf(stderr, fmt, ap); |
(void)vfprintf(stderr, fmt, ap); |
(void)fprintf(stderr, "\n"); |
(void)fprintf(stderr, "\n"); |