From owner-cvs-all Sun Jun 24 18: 1:12 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 0DFDF37B409; Sun, 24 Jun 2001 18:01:05 -0700 (PDT) (envelope-from gad@FreeBSD.org) Received: (from gad@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5P115L32320; Sun, 24 Jun 2001 18:01:05 -0700 (PDT) (envelope-from gad) Message-Id: <200106250101.f5P115L32320@freefall.freebsd.org> From: Garance A Drosehn Date: Sun, 24 Jun 2001 18:01:04 -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: RELENG_4 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/24 18:01:04 PDT Modified files: (Branch: RELENG_4) 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: [MFC from 2001/06/15] 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'. 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 Revision Changes Path 1.12.2.9 +4 -3 src/usr.sbin/lpr/common_source/common.c 1.15.2.5 +8 -8 src/usr.sbin/lpr/common_source/displayq.c 1.9.2.6 +19 -5 src/usr.sbin/lpr/common_source/lp.h 1.3.2.4 +10 -4 src/usr.sbin/lpr/common_source/net.c 1.12.2.5 +13 -12 src/usr.sbin/lpr/common_source/rmjob.c 1.5.2.3 +1 -2 src/usr.sbin/lpr/lpd/extern.h 1.12.2.10 +20 -21 src/usr.sbin/lpr/lpd/lpd.c 1.22.2.13 +11 -12 src/usr.sbin/lpr/lpd/printjob.c 1.14.2.6 +5 -4 src/usr.sbin/lpr/lpd/recvjob.c 1.7.2.3 +2 -2 src/usr.sbin/lpr/lpq/lpq.c 1.32.2.6 +7 -6 src/usr.sbin/lpr/lpr/lpr.c 1.6.2.3 +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