Deleted Added
full compact
rwhod.c (53770) rwhod.c (62989)
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[] = "@(#)rwhod.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[] = "@(#)rwhod.c 8.1 (Berkeley) 6/6/93";
43#endif
44static const char rcsid[] =
45 "$FreeBSD: head/usr.sbin/rwhod/rwhod.c 53770 1999-11-27 17:11:55Z charnier $";
45 "$FreeBSD: head/usr.sbin/rwhod/rwhod.c 62989 2000-07-12 00:50:49Z kris $";
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/socket.h>
50#include <sys/stat.h>
51#include <sys/signal.h>
52#include <sys/ioctl.h>
53#include <sys/sysctl.h>

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

508 }
509 mywd.wd_boottime = htonl(tm.tv_sec);
510}
511
512void
513quit(msg)
514 char *msg;
515{
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/socket.h>
50#include <sys/stat.h>
51#include <sys/signal.h>
52#include <sys/ioctl.h>
53#include <sys/sysctl.h>

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

508 }
509 mywd.wd_boottime = htonl(tm.tv_sec);
510}
511
512void
513quit(msg)
514 char *msg;
515{
516 syslog(LOG_ERR, msg);
516 syslog(LOG_ERR, "%s", msg);
517 exit(1);
518}
519
520#define ROUNDUP(a) \
521 ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
522#define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len))
523
524void

--- 215 unchanged lines hidden ---
517 exit(1);
518}
519
520#define ROUNDUP(a) \
521 ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
522#define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len))
523
524void

--- 215 unchanged lines hidden ---