fifolog_writer.c (199411) | fifolog_writer.c (219027) |
---|---|
1/*- 2 * Copyright (c) 2005-2008 Poul-Henning Kamp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2005-2008 Poul-Henning Kamp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.sbin/fifolog/fifolog_writer/fifolog_writer.c 199411 2009-11-17 17:38:41Z jh $ | 26 * $FreeBSD: head/usr.sbin/fifolog/fifolog_writer/fifolog_writer.c 219027 2011-02-25 09:40:17Z phk $ |
27 */ 28 29#include <stdio.h> 30#include <stdlib.h> 31#include <sysexits.h> 32#include <err.h> 33#include <unistd.h> 34#include <ctype.h> --- 36 unchanged lines hidden (view full) --- 71 z_opt = strtoul(optarg, NULL, 0); 72 break; 73 default: 74 usage(); 75 } 76 } 77 argc -= optind; 78 argv += optind; | 27 */ 28 29#include <stdio.h> 30#include <stdlib.h> 31#include <sysexits.h> 32#include <err.h> 33#include <unistd.h> 34#include <ctype.h> --- 36 unchanged lines hidden (view full) --- 71 z_opt = strtoul(optarg, NULL, 0); 72 break; 73 default: 74 usage(); 75 } 76 } 77 argc -= optind; 78 argv += optind; |
79 if (argc != 1) | 79 if (argc != 1) |
80 usage(); 81 82 if (z_opt > 9) 83 usage(); 84 85 if (w_opt > s_opt) 86 usage(); 87 --- 27 unchanged lines hidden --- | 80 usage(); 81 82 if (z_opt > 9) 83 usage(); 84 85 if (w_opt > s_opt) 86 usage(); 87 --- 27 unchanged lines hidden --- |