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

« back to all changes in this revision

Viewing changes to pac/pac.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: pac.c,v 1.17 2003/06/02 23:36:53 millert Exp $ */
 
1
/*      $OpenBSD: pac.c,v 1.18 2007/09/02 15:19:39 deraadt Exp $ */
2
2
/*      $NetBSD: pac.c,v 1.14 2000/04/27 13:40:18 msaitoh Exp $ */
3
3
 
4
4
/*
41
41
#if 0
42
42
static const char sccsid[] = "@(#)pac.c 8.1 (Berkeley) 6/6/93";
43
43
#else
44
 
static const char rcsid[] = "$OpenBSD: pac.c,v 1.17 2003/06/02 23:36:53 millert Exp $";
 
44
static const char rcsid[] = "$OpenBSD: pac.c,v 1.18 2007/09/02 15:19:39 deraadt Exp $";
45
45
#endif
46
46
#endif /* not lint */
47
47
 
287
287
 
288
288
        hp = hashtab[0];
289
289
        hno = 1;
290
 
        base = (struct hent **) malloc(hcount * sizeof(hp));
 
290
        base = (struct hent **) calloc(hcount, sizeof(hp));
291
291
        if (base == NULL)
292
292
                err(1, NULL);
293
293
        for (ap = base, c = hcount; c--; ap++) {