printjob.c (31492) | printjob.c (38470) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 29 unchanged lines hidden (view full) --- 38 The Regents of the University of California. All rights reserved.\n"; 39#endif /* not lint */ 40 41#ifndef lint 42/* 43static char sccsid[] = "@(#)printjob.c 8.7 (Berkeley) 5/10/95"; 44*/ 45static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 29 unchanged lines hidden (view full) --- 38 The Regents of the University of California. All rights reserved.\n"; 39#endif /* not lint */ 40 41#ifndef lint 42/* 43static char sccsid[] = "@(#)printjob.c 8.7 (Berkeley) 5/10/95"; 44*/ 45static const char rcsid[] = |
46 "$Id$"; | 46 "$Id: printjob.c,v 1.18 1997/12/02 20:45:58 wollman Exp $"; |
47#endif /* not lint */ 48 49 50/* 51 * printjob -- print jobs in the queue. 52 * 53 * NOTE: the lock file is used to pass information to lpq and lprm. 54 * it does not need to be removed because file locks are dynamic. --- 1402 unchanged lines hidden (view full) --- 1457{ 1458 register int i; 1459 int resp; 1460 u_long port; 1461 char *ep; 1462 void (*savealrm)(int); 1463 1464 port = strtoul(pp->lp, &ep, 0); | 47#endif /* not lint */ 48 49 50/* 51 * printjob -- print jobs in the queue. 52 * 53 * NOTE: the lock file is used to pass information to lpq and lprm. 54 * it does not need to be removed because file locks are dynamic. --- 1402 unchanged lines hidden (view full) --- 1457{ 1458 register int i; 1459 int resp; 1460 u_long port; 1461 char *ep; 1462 void (*savealrm)(int); 1463 1464 port = strtoul(pp->lp, &ep, 0); |
1465 if (*ep != ':' || port > 65536) { | 1465 if (*ep != '@' || port > 65535) { |
1466 syslog(LOG_ERR, "%s: bad port number: %s", pp->printer, 1467 pp->lp); 1468 exit(1); 1469 } 1470 ep++; 1471 1472 for (i = 1; ; i = i < 256 ? i << 1 : i) { 1473 resp = -1; --- 179 unchanged lines hidden --- | 1466 syslog(LOG_ERR, "%s: bad port number: %s", pp->printer, 1467 pp->lp); 1468 exit(1); 1469 } 1470 ep++; 1471 1472 for (i = 1; ; i = i < 256 ? i << 1 : i) { 1473 resp = -1; --- 179 unchanged lines hidden --- |