Add FBSDID. Remove unused include. Getopt returns -1 not EOF.

This commit is contained in:
charnier 2002-03-26 12:09:49 +00:00
parent 0bcfef4de7
commit 123fd36687

View File

@ -24,14 +24,14 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $FreeBSD$
*/ */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h> #include <sys/param.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h>
#include <ctype.h> #include <ctype.h>
#include <err.h> #include <err.h>
@ -655,7 +655,7 @@ main(int argc, char *argv[])
int c, e, r; int c, e, r;
while ((c = getopt(argc, argv, while ((c = getopt(argc, argv,
"146AaB:bc:dFf:Hh:lMmnPpo:qRrS:sT:tUvw:")) != EOF) "146AaB:bc:dFf:Hh:lMmnPpo:qRrS:sT:tUvw:")) != -1)
switch (c) { switch (c) {
case '1': case '1':
once_flag = 1; once_flag = 1;
@ -693,7 +693,7 @@ main(int argc, char *argv[])
f_filename = optarg; f_filename = optarg;
break; break;
case 'H': case 'H':
warnx("The -H option is now implicit, " warnx("the -H option is now implicit, "
"use -U to disable"); "use -U to disable");
break; break;
case 'h': case 'h':