nvram.c (239733) | nvram.c (253162) |
---|---|
1/* 2 * Copyright (c) 2006 Maxim Sobolev <sobomax@FreeBSD.org> 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 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 22 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 23 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 * POSSIBILITY OF SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 2006 Maxim Sobolev <sobomax@FreeBSD.org> 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 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 22 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 23 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 * POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.sbin/nvram/nvram.c 239733 2012-08-27 14:51:26Z rdivacky $ | 26 * $FreeBSD: head/usr.sbin/nvram/nvram.c 253162 2013-07-10 18:07:01Z rdivacky $ |
27 */ 28 29#include <sys/types.h> 30#include <sys/uio.h> 31#include <err.h> 32#include <errno.h> 33#include <fcntl.h> 34#include <paths.h> --- 11 unchanged lines hidden (view full) --- 46static int append_var(uint8_t *, int, const char *, const char *); 47 48struct deletelist { 49 char *name; 50 struct deletelist *next; 51 struct deletelist *last; 52}; 53 | 27 */ 28 29#include <sys/types.h> 30#include <sys/uio.h> 31#include <err.h> 32#include <errno.h> 33#include <fcntl.h> 34#include <paths.h> --- 11 unchanged lines hidden (view full) --- 46static int append_var(uint8_t *, int, const char *, const char *); 47 48struct deletelist { 49 char *name; 50 struct deletelist *next; 51 struct deletelist *last; 52}; 53 |
54union { | 54static union { |
55 uint8_t buf[sizeof(struct chrp_header)]; 56 struct chrp_header header; 57} conv; 58 59int 60main(int argc, char **argv) 61{ 62 int opt, dump, fd, res, i, size; --- 164 unchanged lines hidden --- | 55 uint8_t buf[sizeof(struct chrp_header)]; 56 struct chrp_header header; 57} conv; 58 59int 60main(int argc, char **argv) 61{ 62 int opt, dump, fd, res, i, size; --- 164 unchanged lines hidden --- |