Deleted Added
full compact
printcap.c (50479) printcap.c (68253)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 26 unchanged lines hidden (view full) ---

35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * From: @(#)common.c 8.5 (Berkeley) 4/28/95
39 */
40
41#ifndef lint
42static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 26 unchanged lines hidden (view full) ---

35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * From: @(#)common.c 8.5 (Berkeley) 4/28/95
39 */
40
41#ifndef lint
42static const char rcsid[] =
43 "$FreeBSD: head/usr.sbin/lpr/common_source/printcap.c 50479 1999-08-28 01:35:59Z peter $";
43 "$FreeBSD: head/usr.sbin/lpr/common_source/printcap.c 68253 2000-11-02 19:22:06Z gad $";
44#endif /* not lint */
45
46#include <errno.h>
47#include <stdio.h>
48#include <stdlib.h>
49#include <string.h>
50#include <unistd.h>
51

--- 194 unchanged lines hidden (view full) ---

246 CHK(capdb_getaltnum(bp, "py", "page.plength", 0, &pp->page_plength));
247 CHK(capdb_getaltstr(bp, "rg", "daemon.restrictgrp", 0,
248 &pp->restrict_grp));
249 CHK(capdb_getaltstr(bp, "rm", "remote.host", 0, &pp->remote_host));
250 CHK(capdb_getaltstr(bp, "rp", "remote.queue", DEFLP,
251 &pp->remote_queue));
252 CHK(capdb_getaltstr(bp, "sd", "spool.dir", _PATH_DEFSPOOL,
253 &pp->spool_dir));
44#endif /* not lint */
45
46#include <errno.h>
47#include <stdio.h>
48#include <stdlib.h>
49#include <string.h>
50#include <unistd.h>
51

--- 194 unchanged lines hidden (view full) ---

246 CHK(capdb_getaltnum(bp, "py", "page.plength", 0, &pp->page_plength));
247 CHK(capdb_getaltstr(bp, "rg", "daemon.restrictgrp", 0,
248 &pp->restrict_grp));
249 CHK(capdb_getaltstr(bp, "rm", "remote.host", 0, &pp->remote_host));
250 CHK(capdb_getaltstr(bp, "rp", "remote.queue", DEFLP,
251 &pp->remote_queue));
252 CHK(capdb_getaltstr(bp, "sd", "spool.dir", _PATH_DEFSPOOL,
253 &pp->spool_dir));
254 CHK(capdb_getaltstr(bp, "sr", "stat.recv", 0, &pp->stat_recv));
255 CHK(capdb_getaltstr(bp, "ss", "stat.send", 0, &pp->stat_send));
254 CHK(capdb_getaltstr(bp, "st", "spool.status", DEFSTAT,
255 &pp->status_file));
256 CHK(capdb_getaltstr(bp, "tr", "job.trailer", 0, &pp->trailer));
257
258 pp->restricted = capdb_getaltlog(bp, "rs", "daemon.restricted");
259 pp->short_banner = capdb_getaltlog(bp, "sb", "banner.short");
260 pp->no_copies = capdb_getaltlog(bp, "sc", "job.no_copies");
261 pp->no_formfeed = capdb_getaltlog(bp, "sf", "job.no_formfeed");

--- 79 unchanged lines hidden (view full) ---

341 cfree(pp->form_feed);
342 cfree(pp->log_file);
343 cfree(pp->lock_file);
344 cfree(pp->lp);
345 cfree(pp->restrict_grp);
346 cfree(pp->remote_host);
347 cfree(pp->remote_queue);
348 cfree(pp->spool_dir);
256 CHK(capdb_getaltstr(bp, "st", "spool.status", DEFSTAT,
257 &pp->status_file));
258 CHK(capdb_getaltstr(bp, "tr", "job.trailer", 0, &pp->trailer));
259
260 pp->restricted = capdb_getaltlog(bp, "rs", "daemon.restricted");
261 pp->short_banner = capdb_getaltlog(bp, "sb", "banner.short");
262 pp->no_copies = capdb_getaltlog(bp, "sc", "job.no_copies");
263 pp->no_formfeed = capdb_getaltlog(bp, "sf", "job.no_formfeed");

--- 79 unchanged lines hidden (view full) ---

343 cfree(pp->form_feed);
344 cfree(pp->log_file);
345 cfree(pp->lock_file);
346 cfree(pp->lp);
347 cfree(pp->restrict_grp);
348 cfree(pp->remote_host);
349 cfree(pp->remote_queue);
350 cfree(pp->spool_dir);
351 cfree(pp->stat_recv);
352 cfree(pp->stat_send);
349 cfree(pp->status_file);
350 cfree(pp->trailer);
351 cfree(pp->mode_set);
352
353 init_printer(pp);
354}
355
356

--- 88 unchanged lines hidden ---
353 cfree(pp->status_file);
354 cfree(pp->trailer);
355 cfree(pp->mode_set);
356
357 init_printer(pp);
358}
359
360

--- 88 unchanged lines hidden ---