lpc.c (331722) | lpc.c (347610) |
---|---|
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: --- 27 unchanged lines hidden (view full) --- 36 37#if 0 38#ifndef lint 39static char sccsid[] = "@(#)lpc.c 8.3 (Berkeley) 4/28/95"; 40#endif /* not lint */ 41#endif 42 43#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */ | 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: --- 27 unchanged lines hidden (view full) --- 36 37#if 0 38#ifndef lint 39static char sccsid[] = "@(#)lpc.c 8.3 (Berkeley) 4/28/95"; 40#endif /* not lint */ 41#endif 42 43#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */ |
44__FBSDID("$FreeBSD: stable/11/usr.sbin/lpr/lpc/lpc.c 331722 2018-03-29 02:50:57Z eadler $"); | 44__FBSDID("$FreeBSD: stable/11/usr.sbin/lpr/lpc/lpc.c 347610 2019-05-15 07:51:30Z ngie $"); |
45 46#include <sys/param.h> 47 48#include <ctype.h> 49#include <dirent.h> 50#include <err.h> 51#include <grp.h> 52#include <setjmp.h> --- 139 unchanged lines hidden (view full) --- 192 quit(0, NULL); 193 if (cmdline[0] == 0 || cmdline[0] == '\n') 194 break; 195 } 196 197 makeargv(); 198 if (margc == 0) 199 continue; | 45 46#include <sys/param.h> 47 48#include <ctype.h> 49#include <dirent.h> 50#include <err.h> 51#include <grp.h> 52#include <setjmp.h> --- 139 unchanged lines hidden (view full) --- 192 quit(0, NULL); 193 if (cmdline[0] == 0 || cmdline[0] == '\n') 194 break; 195 } 196 197 makeargv(); 198 if (margc == 0) 199 continue; |
200 if (el != NULL && el_parse(el, margc, margv) != -1) | 200 if (el != NULL && el_parse(el, margc, (const char **)margv) != -1) |
201 continue; 202 203 c = getcmd(margv[0]); 204 if (c == (struct cmd *)-1) { 205 printf("?Ambiguous command\n"); 206 continue; 207 } 208 if (c == NULL) { --- 211 unchanged lines hidden --- | 201 continue; 202 203 c = getcmd(margv[0]); 204 if (c == (struct cmd *)-1) { 205 printf("?Ambiguous command\n"); 206 continue; 207 } 208 if (c == NULL) { --- 211 unchanged lines hidden --- |