Deleted Added
full compact
devs.c (226396) devs.c (229403)
1/*
2 * Copyright (c) 1998 Kenneth D. Merry.
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

--- 42 unchanged lines hidden (view full) ---

51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 * SUCH DAMAGE.
55 */
56
57#include <sys/cdefs.h>
58
1/*
2 * Copyright (c) 1998 Kenneth D. Merry.
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

--- 42 unchanged lines hidden (view full) ---

51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 * SUCH DAMAGE.
55 */
56
57#include <sys/cdefs.h>
58
59__FBSDID("$FreeBSD: head/usr.bin/systat/devs.c 226396 2011-10-15 13:20:36Z ed $");
59__FBSDID("$FreeBSD: head/usr.bin/systat/devs.c 229403 2012-01-03 18:51:58Z ed $");
60
61#ifdef lint
62static const char sccsid[] = "@(#)disks.c 8.1 (Berkeley) 6/6/93";
63#endif
64
65#include <sys/types.h>
66#include <sys/devicestat.h>
67#include <sys/resource.h>

--- 192 unchanged lines hidden (view full) ---

260 specified_devices = NULL;
261 num_devices_specified = 0;
262 }
263
264 /* do an initial malloc */
265 specified_devices = (char **)malloc(sizeof(char *));
266
267 tmpstr = tmpstr1 = strdup(args);
60
61#ifdef lint
62static const char sccsid[] = "@(#)disks.c 8.1 (Berkeley) 6/6/93";
63#endif
64
65#include <sys/types.h>
66#include <sys/devicestat.h>
67#include <sys/resource.h>

--- 192 unchanged lines hidden (view full) ---

260 specified_devices = NULL;
261 num_devices_specified = 0;
262 }
263
264 /* do an initial malloc */
265 specified_devices = (char **)malloc(sizeof(char *));
266
267 tmpstr = tmpstr1 = strdup(args);
268 cp = index(tmpstr1, '\n');
268 cp = strchr(tmpstr1, '\n');
269 if (cp)
270 *cp = '\0';
271 for (;;) {
272 for (cp = tmpstr1; *cp && isspace(*cp); cp++)
273 ;
274 tmpstr1 = cp;
275 for (; *cp && !isspace(*cp); cp++)
276 ;

--- 45 unchanged lines hidden ---
269 if (cp)
270 *cp = '\0';
271 for (;;) {
272 for (cp = tmpstr1; *cp && isspace(*cp); cp++)
273 ;
274 tmpstr1 = cp;
275 for (; *cp && !isspace(*cp); cp++)
276 ;

--- 45 unchanged lines hidden ---