static int lpos;
int tlpos;
int tline;
+char *tlname;
static int token;
static int ugflag;
static char *tval;
KandR (char *fmt;)
va_dcl
{
- extern int tline, tlpos;
va_list list;
do_percentm (mbuf, fmt);
#ifndef NO_SNPRINTF
- snprintf (fbuf, sizeof fbuf, "dhcpd.conf line %d char %d: %s",
- tline, tlpos, mbuf);
+ snprintf (fbuf, sizeof fbuf, "%s line %d char %d: %s",
+ tlname, tline, tlpos, mbuf);
#else
- sprintf (fbuf, "dhcpd.conf line %d char %d: %s", tline, tlpos, mbuf);
+ sprintf (fbuf, "%s line %d char %d: %s", tlname, tline, tlpos, mbuf);
#endif
VA_start (list, fmt);
static int lpos;
int tlpos;
int tline;
+char *tlname;
static int token;
static int ugflag;
static char *tval;
void cleanup PROTO ((void));
/* conflex.c */
+extern int tline, tlpos;
+extern char *tlname;
int next_token PROTO ((char **, FILE *));
int peek_token PROTO ((char **, FILE *));
KandR (char *fmt;)
va_dcl
{
- extern int tline, tlpos;
va_list list;
do_percentm (mbuf, fmt);
#ifndef NO_SNPRINTF
- snprintf (fbuf, sizeof fbuf, "dhcpd.conf line %d char %d: %s",
- tline, tlpos, mbuf);
+ snprintf (fbuf, sizeof fbuf, "%s line %d char %d: %s",
+ tlname, tline, tlpos, mbuf);
#else
- sprintf (fbuf, "dhcpd.conf line %d char %d: %s", tline, tlpos, mbuf);
+ sprintf (fbuf, "%s line %d char %d: %s", tlname, tline, tlpos, mbuf);
#endif
VA_start (list, fmt);
void cleanup PROTO ((void));
/* conflex.c */
+extern int tline, tlpos;
+extern char *tlname;
int next_token PROTO ((char **, FILE *));
int peek_token PROTO ((char **, FILE *));