freebsd-dev/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 Improve my hack from rev 1.6 of displayq.c, and make the TCP 1997-10-14 16:01:02 +00:00
Makefile $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
net.c Rename a few global variables which hold hostname-related values to be 2001-06-15 22:03:07 +00:00
pathnames.h Mega lpd/lpd upgrade, part I: 1997-12-02 20:46:22 +00:00
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 Use macro API to <sys/queue.h> 2000-12-30 20:56:04 +00:00
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