recvjob.c (8857) | recvjob.c (15648) |
---|---|
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: --- 25 unchanged lines hidden (view full) --- 34 35#ifndef lint 36static char copyright[] = 37"@(#) Copyright (c) 1983, 1993\n\ 38 The Regents of the University of California. All rights reserved.\n"; 39#endif /* not lint */ 40 41#ifndef lint | 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: --- 25 unchanged lines hidden (view full) --- 34 35#ifndef lint 36static char copyright[] = 37"@(#) Copyright (c) 1983, 1993\n\ 38 The Regents of the University of California. All rights reserved.\n"; 39#endif /* not lint */ 40 41#ifndef lint |
42static char sccsid[] = "@(#)recvjob.c 8.1 (Berkeley) 6/6/93"; | 42static char sccsid[] = "@(#)recvjob.c 8.2 (Berkeley) 4/27/95"; |
43#endif /* not lint */ 44 45/* 46 * Receive printer jobs from the network, queue them and 47 * start the printer daemon. 48 */ 49#include <sys/param.h> 50#include <sys/mount.h> --- 286 unchanged lines hidden (view full) --- 337#if __STDC__ 338frecverr(const char *msg, ...) 339#else 340frecverr(msg, va_alist) 341 char *msg; 342 va_dcl 343#endif 344{ | 43#endif /* not lint */ 44 45/* 46 * Receive printer jobs from the network, queue them and 47 * start the printer daemon. 48 */ 49#include <sys/param.h> 50#include <sys/mount.h> --- 286 unchanged lines hidden (view full) --- 337#if __STDC__ 338frecverr(const char *msg, ...) 339#else 340frecverr(msg, va_alist) 341 char *msg; 342 va_dcl 343#endif 344{ |
345 extern char *fromb; | 345 extern char fromb[]; |
346 va_list ap; 347#if __STDC__ 348 va_start(ap, msg); 349#else 350 va_start(ap); 351#endif 352 rcleanup(0); 353 syslog(LOG_ERR, "%s", fromb); 354 vsyslog(LOG_ERR, msg, ap); 355 va_end(ap); 356 putchar('\1'); /* return error code */ 357 exit(1); 358} | 346 va_list ap; 347#if __STDC__ 348 va_start(ap, msg); 349#else 350 va_start(ap); 351#endif 352 rcleanup(0); 353 syslog(LOG_ERR, "%s", fromb); 354 vsyslog(LOG_ERR, msg, ap); 355 va_end(ap); 356 putchar('\1'); /* return error code */ 357 exit(1); 358} |