Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2001 15:03:09 -0700 (PDT)
From:      Garance A Drosehn <gad@FreeBSD.org>
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
Message-ID:  <200106152203.f5FM39W55887@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106152203.f5FM39W55887>