From owner-cvs-all Fri Jun 15 15: 3:17 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CB4AC37B406; Fri, 15 Jun 2001 15:03:09 -0700 (PDT) (envelope-from gad@FreeBSD.org) Received: (from gad@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5FM39W55887; Fri, 15 Jun 2001 15:03:09 -0700 (PDT) (envelope-from gad) Message-Id: <200106152203.f5FM39W55887@freefall.freebsd.org> From: Garance A Drosehn Date: Fri, 15 Jun 2001 15:03:09 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/lpr/common_source common.c displayq.c lp.h net.c rmjob.c src/usr.sbin/lpr/lpd extern.h lpd.c printjob.c recvjob.c src/usr.sbin/lpr/lpq lpq.c src/usr.sbin/lpr/lpr lpr.c src/usr.sbin/lpr/lprm lprm.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG gad 2001/06/15 15:03:09 PDT Modified files: usr.sbin/lpr/common_source common.c displayq.c lp.h net.c rmjob.c usr.sbin/lpr/lpd extern.h lpd.c printjob.c recvjob.c usr.sbin/lpr/lpq lpq.c usr.sbin/lpr/lpr lpr.c usr.sbin/lpr/lprm lprm.c Log: 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 Revision Changes Path 1.21 +4 -3 src/usr.sbin/lpr/common_source/common.c 1.20 +8 -8 src/usr.sbin/lpr/common_source/displayq.c 1.17 +19 -5 src/usr.sbin/lpr/common_source/lp.h 1.7 +10 -4 src/usr.sbin/lpr/common_source/net.c 1.17 +13 -12 src/usr.sbin/lpr/common_source/rmjob.c 1.8 +1 -2 src/usr.sbin/lpr/lpd/extern.h 1.22 +20 -21 src/usr.sbin/lpr/lpd/lpd.c 1.37 +11 -12 src/usr.sbin/lpr/lpd/printjob.c 1.20 +5 -4 src/usr.sbin/lpr/lpd/recvjob.c 1.10 +2 -2 src/usr.sbin/lpr/lpq/lpq.c 1.38 +7 -6 src/usr.sbin/lpr/lpr/lpr.c 1.9 +2 -2 src/usr.sbin/lpr/lprm/lprm.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message