freebsd-nq/usr.sbin/lpr/common_source
Garance A Drosehn cc3fd56f96 Rename a few global variables which hold hostname-related values to be
more sensible/understandable.  'from'->'from_host'  'host'->'local_host'
'fromb'->'frombuf'  'fromhost'->'origin_host'  and a local-variable
named 'host'->'hostbuf'.  This fixes some compile-time warnings about
local variables shadowing global variables.

Other than renaming variables, the only actual code changes are to call
strlcpy() instead of strncpy() when setting those (renamed) variables,
and that 'from_ip' is now a strdup()-created buffer instead of being a
static buffer compiled in as 1025 bytes.

Reviewed by:	freebsd-print@bostonradio.org (an earlier version)
MFC after:	1 week
2001-06-15 22:03:07 +00:00
..
common.c Rename a few global variables which hold hostname-related values to be 2001-06-15 22:03:07 +00:00
displayq.c Rename a few global variables which hold hostname-related values to be 2001-06-15 22:03:07 +00:00
lp.h Rename a few global variables which hold hostname-related values to be 2001-06-15 22:03:07 +00:00
lp.local.h
Makefile
net.c Rename a few global variables which hold hostname-related values to be 2001-06-15 22:03:07 +00:00
pathnames.h
printcap.c Fix about 90-100 warnings one gets when trying to compile lpr&friends 2001-06-12 16:38:20 +00:00
request.c
rmjob.c Rename a few global variables which hold hostname-related values to be 2001-06-15 22:03:07 +00:00
startdaemon.c Fix about 90-100 warnings one gets when trying to compile lpr&friends 2001-06-12 16:38:20 +00:00