ifconfig.c (191252) | ifconfig.c (194799) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. 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 --- 24 unchanged lines hidden (view full) --- 33 The Regents of the University of California. All rights reserved.\n"; 34#endif /* not lint */ 35 36#ifndef lint 37#if 0 38static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94"; 39#endif 40static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. 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 --- 24 unchanged lines hidden (view full) --- 33 The Regents of the University of California. All rights reserved.\n"; 34#endif /* not lint */ 35 36#ifndef lint 37#if 0 38static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94"; 39#endif 40static const char rcsid[] = |
41 "$FreeBSD: head/sbin/ifconfig/ifconfig.c 191252 2009-04-18 20:10:39Z rwatson $"; | 41 "$FreeBSD: head/sbin/ifconfig/ifconfig.c 194799 2009-06-23 23:49:52Z delphij $"; |
42#endif /* not lint */ 43 44#include <sys/param.h> 45#include <sys/ioctl.h> 46#include <sys/socket.h> 47#include <sys/sysctl.h> 48#include <sys/time.h> 49#include <sys/module.h> --- 998 unchanged lines hidden (view full) --- 1048 DEF_CMD_ARG("mtu", setifmtu), 1049 DEF_CMD_ARG("name", setifname), 1050}; 1051 1052static __constructor void 1053ifconfig_ctor(void) 1054{ 1055#define N(a) (sizeof(a) / sizeof(a[0])) | 42#endif /* not lint */ 43 44#include <sys/param.h> 45#include <sys/ioctl.h> 46#include <sys/socket.h> 47#include <sys/sysctl.h> 48#include <sys/time.h> 49#include <sys/module.h> --- 998 unchanged lines hidden (view full) --- 1048 DEF_CMD_ARG("mtu", setifmtu), 1049 DEF_CMD_ARG("name", setifname), 1050}; 1051 1052static __constructor void 1053ifconfig_ctor(void) 1054{ 1055#define N(a) (sizeof(a) / sizeof(a[0])) |
1056 int i; | 1056 size_t i; |
1057 1058 for (i = 0; i < N(basic_cmds); i++) 1059 cmd_register(&basic_cmds[i]); 1060#undef N 1061} | 1057 1058 for (i = 0; i < N(basic_cmds); i++) 1059 cmd_register(&basic_cmds[i]); 1060#undef N 1061} |