~ubuntu-branches/ubuntu/lucid/lpr/lucid

« back to all changes in this revision

Viewing changes to common_source/common.c

  • Committer: Bazaar Package Importer
  • Author(s): Adam Majer
  • Date: 2008-05-19 21:11:19 UTC
  • Revision ID: james.westby@ubuntu.com-20080519211119-mkch0dpnzwnfr7vz
Tags: 1:2008.05.17
* Change package priority from standard to optional since it was
  already done in the override file
* Add upstream revision file
* Upgrade standards to 3.7.3
* Overwrite logcheck-database provided logcheck file with our own
  version (closes: #418393)
* Added upstream patches
  + lpd/printjob.c [rev. 1.41] - rfc 3834 support: "Auto-Submitted:
  auto-generated" on lots of things; from Tamas TEVESZ
  + Synched to upstream lpr as of 2008-05-17
* Merged logcheck-database rule with the ones provided by lpr.
* Remove old changelog entries for versions before OpenBSD's version
  was used as an upstream.
* Added Vcs- info to control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $OpenBSD: common.c,v 1.29 2004/11/17 02:31:30 itojun Exp $      */
 
1
/*      $OpenBSD: common.c,v 1.32 2007/09/02 15:19:38 deraadt Exp $     */
2
2
/*      $NetBSD: common.c,v 1.21 2000/08/09 14:28:50 itojun Exp $       */
3
3
 
4
4
/*
39
39
#if 0
40
40
static const char sccsid[] = "@(#)common.c      8.5 (Berkeley) 4/28/95";
41
41
#else
42
 
static const char rcsid[] = "$OpenBSD: common.c,v 1.29 2004/11/17 02:31:30 itojun Exp $";
 
42
static const char rcsid[] = "$OpenBSD: common.c,v 1.32 2007/09/02 15:19:38 deraadt Exp $";
43
43
#endif
44
44
#endif /* not lint */
45
45
 
76
76
long     BR;            /* baud rate if lp is a tty */
77
77
char    *CF;            /* name of cifplot filter (per job) */
78
78
char    *DF;            /* name of tex filter (per job) */
79
 
long     DU;            /* daeomon user-id */
 
79
long     DU;            /* daemon user-id */
80
80
long     FC;            /* flags to clear if lp is a tty */
81
81
char    *FF;            /* form feed string */
82
82
long     FS;            /* flags to set if lp is a tty */
91
91
long     MX;            /* maximum number of blocks to copy */
92
92
char    *NF;            /* name of ditroff filter (per job) */
93
93
char    *OF;            /* name of output filter (created once) */
94
 
char    *PF;            /* name of vrast filter (per job) */
95
94
long     PL;            /* page length */
96
95
long     PW;            /* page width */
97
96
long     PX;            /* page width in pixels */
98
97
long     PY;            /* page length in pixels */
99
98
char    *RF;            /* name of fortran text filter (per job) */
100
 
char    *RG;            /* resricted group */
 
99
char    *RG;            /* restricted group */
101
100
char    *RM;            /* remote machine name */
102
101
char    *RP;            /* remote printer name */
103
102
long     RS;            /* restricted to those with local accounts */
261
260
         * and dividing it by a multiple of the minimum size entry. 
262
261
         */
263
262
        arraysz = (stbuf.st_size / 24);
264
 
        queue = (struct queue **)malloc(arraysz * sizeof(struct queue *));
 
263
        queue = (struct queue **)calloc(arraysz, sizeof(struct queue *));
265
264
        if (queue == NULL)
266
265
                goto errdone;
267
266