[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / oldrdist

Diff for /src/usr.bin/oldrdist/Attic/main.c between version 1.11 and 1.12

version 1.11, 2002/02/16 21:27:50 version 1.12, 2002/02/19 19:39:38
Line 44 
Line 44 
 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
Line 307 
Line 308 
         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");

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12