Deleted Added
full compact
logger.c (70100) logger.c (83150)
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

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

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)logger.c 8.1 (Berkeley) 6/6/93";
43#endif
44static 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

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

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)logger.c 8.1 (Berkeley) 6/6/93";
43#endif
44static const char rcsid[] =
45 "$FreeBSD: head/usr.bin/logger/logger.c 70100 2000-12-16 18:33:08Z ume $";
45 "$FreeBSD: head/usr.bin/logger/logger.c 83150 2001-09-06 12:48:44Z ru $";
46#endif /* not lint */
47
48#include <sys/types.h>
49#include <sys/socket.h>
50#include <netinet/in.h>
51
52#include <ctype.h>
53#include <err.h>

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

89 int argc;
90 char *argv[];
91{
92 int ch, logflags, pri;
93 char *tag, *host, buf[1024];
94
95 tag = NULL;
96 host = NULL;
46#endif /* not lint */
47
48#include <sys/types.h>
49#include <sys/socket.h>
50#include <netinet/in.h>
51
52#include <ctype.h>
53#include <err.h>

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

89 int argc;
90 char *argv[];
91{
92 int ch, logflags, pri;
93 char *tag, *host, buf[1024];
94
95 tag = NULL;
96 host = NULL;
97 pri = LOG_NOTICE;
97 pri = LOG_USER | LOG_NOTICE;
98 logflags = 0;
99 unsetenv("TZ");
100 while ((ch = getopt(argc, argv, "46Af:h:ip:st:")) != -1)
101 switch((char)ch) {
102 case '4':
103 family = PF_INET;
104 break;
105#ifdef INET6

--- 182 unchanged lines hidden ---
98 logflags = 0;
99 unsetenv("TZ");
100 while ((ch = getopt(argc, argv, "46Af:h:ip:st:")) != -1)
101 switch((char)ch) {
102 case '4':
103 family = PF_INET;
104 break;
105#ifdef INET6

--- 182 unchanged lines hidden ---