use DEFLP instead of "lp".

This commit is contained in:
mrg 2001-06-25 11:04:51 +00:00
parent 0bab4db966
commit a062d79672
3 changed files with 9 additions and 9 deletions

View File

@ -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 @@ displayq(format)
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;

View File

@ -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 @@ rmjob()
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;

View File

@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
#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 @@ init()
} 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;