From a2e364fff77d5509fa8af63d046c166203d97da8 Mon Sep 17 00:00:00 2001 From: gad Date: Fri, 15 Jun 2001 16:28:37 +0000 Subject: Rename global variable 'name' to 'progname', thus fixing a number of warnings which come up for various routines that have a parameter which is also called 'name'. Reviewed by: freebsd-print@bostonradio.org MFC after: 1 week --- usr.sbin/lpr/common_source/common.c | 4 ++-- usr.sbin/lpr/common_source/lp.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/lpr/common_source') diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c index 2cf17ec..8e705db 100644 --- a/usr.sbin/lpr/common_source/common.c +++ b/usr.sbin/lpr/common_source/common.c @@ -64,7 +64,7 @@ static const char rcsid[] = * Routines and data common to all the line printer functions. */ char line[BUFSIZ]; -const char *name; /* program name */ +const char *progname; /* program name */ extern uid_t uid, euid; @@ -555,7 +555,7 @@ fatal(pp, msg, va_alist) #endif if (from != host) (void)printf("%s: ", host); - (void)printf("%s: ", name); + (void)printf("%s: ", progname); if (pp && pp->printer) (void)printf("%s: ", pp->printer); (void)vprintf(msg, ap); diff --git a/usr.sbin/lpr/common_source/lp.h b/usr.sbin/lpr/common_source/lp.h index 2bfd84c..3cee695 100644 --- a/usr.sbin/lpr/common_source/lp.h +++ b/usr.sbin/lpr/common_source/lp.h @@ -153,7 +153,7 @@ struct request { * Global definitions for the line printer system. */ extern char line[BUFSIZ]; -extern const char *name; /* program name */ +extern const char *progname; /* program name (lpr, lpq, etc) */ /* host machine name */ extern char host[MAXHOSTNAMELEN]; extern char *from; /* client's machine name */ -- cgit v1.1