Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/lpr use DEFLP instead of "lp".



details:   https://anonhg.NetBSD.org/src/rev/23ae75ca7037
branches:  trunk
changeset: 511708:23ae75ca7037
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jun 25 11:04:51 2001 +0000

description:
use DEFLP instead of "lp".

diffstat:

 usr.sbin/lpr/common_source/displayq.c |  6 +++---
 usr.sbin/lpr/common_source/rmjob.c    |  6 +++---
 usr.sbin/lpr/lpd/printjob.c           |  6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (81 lines):

diff -r e28d3a45224c -r 23ae75ca7037 usr.sbin/lpr/common_source/displayq.c
--- a/usr.sbin/lpr/common_source/displayq.c     Mon Jun 25 09:07:08 2001 +0000
+++ b/usr.sbin/lpr/common_source/displayq.c     Mon Jun 25 11:04:51 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: displayq.c,v 1.19 2001/01/05 03:27:27 lukem Exp $      */
+/*     $NetBSD: displayq.c,v 1.20 2001/06/25 11:04:52 mrg Exp $        */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)displayq.c 8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: displayq.c,v 1.19 2001/01/05 03:27:27 lukem Exp $");
+__RCSID("$NetBSD: displayq.c,v 1.20 2001/06/25 11:04:52 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -114,7 +114,7 @@
                fatal("unknown printer");
        else if (i == -3)
                fatal("potential reference loop detected in printcap file");
-       if (cgetstr(bp, "lp", &LP) < 0)
+       if (cgetstr(bp, DEFLP, &LP) < 0)
                LP = _PATH_DEFDEVLP;
        if (cgetstr(bp, "rp", &RP) < 0)
                RP = DEFLP;
diff -r e28d3a45224c -r 23ae75ca7037 usr.sbin/lpr/common_source/rmjob.c
--- a/usr.sbin/lpr/common_source/rmjob.c        Mon Jun 25 09:07:08 2001 +0000
+++ b/usr.sbin/lpr/common_source/rmjob.c        Mon Jun 25 11:04:51 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rmjob.c,v 1.16 2000/04/16 14:43:58 mrg Exp $   */
+/*     $NetBSD: rmjob.c,v 1.17 2001/06/25 11:04:52 mrg Exp $   */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)rmjob.c    8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: rmjob.c,v 1.16 2000/04/16 14:43:58 mrg Exp $");
+__RCSID("$NetBSD: rmjob.c,v 1.17 2001/06/25 11:04:52 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -93,7 +93,7 @@
                fatal("unknown printer");
        else if (i == -3)
                fatal("potential reference loop detected in printcap file");
-       if (cgetstr(bp, "lp", &LP) < 0)
+       if (cgetstr(bp, DEFLP, &LP) < 0)
                LP = _PATH_DEFDEVLP;
        if (cgetstr(bp, "rp", &RP) < 0)
                RP = DEFLP;
diff -r e28d3a45224c -r 23ae75ca7037 usr.sbin/lpr/lpd/printjob.c
--- a/usr.sbin/lpr/lpd/printjob.c       Mon Jun 25 09:07:08 2001 +0000
+++ b/usr.sbin/lpr/lpd/printjob.c       Mon Jun 25 11:04:51 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: printjob.c,v 1.26 2001/01/05 03:27:27 lukem Exp $      */
+/*     $NetBSD: printjob.c,v 1.27 2001/06/25 11:04:51 mrg Exp $        */
 
 /*
  * Copyright (c) 1983, 1993
@@ -45,7 +45,7 @@
 #if 0
 static char sccsid[] = "@(#)printjob.c 8.7 (Berkeley) 5/10/95";
 #else
-__RCSID("$NetBSD: printjob.c,v 1.26 2001/01/05 03:27:27 lukem Exp $");
+__RCSID("$NetBSD: printjob.c,v 1.27 2001/06/25 11:04:51 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -1226,7 +1226,7 @@
        } else if (status == -3)
                fatal("potential reference loop detected in printcap file");
 
-       if (cgetstr(bp, "lp", &LP) == -1)
+       if (cgetstr(bp, DEFLP, &LP) == -1)
                LP = _PATH_DEFDEVLP;
        if (cgetstr(bp, "rp", &RP) == -1)
                RP = DEFLP;



Home | Main Index | Thread Index | Old Index