summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source/net.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-10-25 20:16:38 +0000
committered <ed@FreeBSD.org>2012-10-25 20:16:38 +0000
commit7a91df3c3792dc1bed5ff818447fc26896d809d1 (patch)
tree0e0428999efb2ba07c54e60bb09ad02a5f3c3bd6 /usr.sbin/lpr/common_source/net.c
parent534523d9751333936c4698628a7545f16b40d0c3 (diff)
downloadFreeBSD-src-7a91df3c3792dc1bed5ff818447fc26896d809d1.zip
FreeBSD-src-7a91df3c3792dc1bed5ff818447fc26896d809d1.tar.gz
Let lpr build with -Wmissing-variable-declarations.
Mark variables static where possible and place the uid/euid variables in lp.h, so that we can compile-time enforce that these variables have the same type.
Diffstat (limited to 'usr.sbin/lpr/common_source/net.c')
-rw-r--r--usr.sbin/lpr/common_source/net.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.sbin/lpr/common_source/net.c b/usr.sbin/lpr/common_source/net.c
index 0ac816a..ab6fa16 100644
--- a/usr.sbin/lpr/common_source/net.c
+++ b/usr.sbin/lpr/common_source/net.c
@@ -80,8 +80,6 @@ u_char family = PF_UNSPEC;
u_char family = PF_INET;
#endif
-extern uid_t uid, euid;
-
/*
* Create a TCP connection to host "rhost" at port "rport".
* If rport == 0, then use the printer service port.
OpenPOWER on IntegriCloud