ccdconfig.c (116126) | ccdconfig.c (118632) |
---|---|
1/* 2 * Copyright (c) 2003 Poul-Henning Kamp 3 * Copyright (c) 1995 Jason R. Thorpe. 4 * All rights reserved. 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: --- 18 unchanged lines hidden (view full) --- 27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2003 Poul-Henning Kamp 3 * Copyright (c) 1995 Jason R. Thorpe. 4 * All rights reserved. 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: --- 18 unchanged lines hidden (view full) --- 27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sbin/ccdconfig/ccdconfig.c 116126 2003-06-09 21:50:41Z phk $"); | 35__FBSDID("$FreeBSD: head/sbin/ccdconfig/ccdconfig.c 118632 2003-08-07 19:10:35Z johan $"); |
36 37#include <sys/param.h> 38#include <sys/linker.h> 39#include <sys/module.h> 40#include <ctype.h> 41#include <err.h> 42#include <errno.h> 43#include <limits.h> --- 331 unchanged lines hidden (view full) --- 375 printf("%s", cp); 376 free(cp); 377 return (0); 378} 379 380static int 381dump_ccd(int argc, char **argv) 382{ | 36 37#include <sys/param.h> 38#include <sys/linker.h> 39#include <sys/module.h> 40#include <ctype.h> 41#include <err.h> 42#include <errno.h> 43#include <limits.h> --- 331 unchanged lines hidden (view full) --- 375 printf("%s", cp); 376 free(cp); 377 return (0); 378} 379 380static int 381dump_ccd(int argc, char **argv) 382{ |
383 int i, err; | 383 int i, error; |
384 385 if (argc == 0) { | 384 385 if (argc == 0) { |
386 err = dumpout(-1); | 386 error = dumpout(-1); |
387 } else { | 387 } else { |
388 err = 0; 389 for (i = 0; err == 0 && i < argc; i++) 390 err = dumpout(resolve_ccdname(argv[i])); | 388 error = 0; 389 for (i = 0; error == 0 && i < argc; i++) 390 error = dumpout(resolve_ccdname(argv[i])); |
391 } | 391 } |
392 return (err); | 392 return (error); |
393} 394 395static int 396flags_to_val(char *flags) 397{ 398 char *cp, *tok; 399 int i, tmp, val; 400 size_t flagslen; --- 41 unchanged lines hidden --- | 393} 394 395static int 396flags_to_val(char *flags) 397{ 398 char *cp, *tok; 399 int i, tmp, val; 400 size_t flagslen; --- 41 unchanged lines hidden --- |