rwhod.c (133249) | rwhod.c (141918) |
---|---|
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 --- 26 unchanged lines hidden (view full) --- 35 36#if 0 37#ifndef lint 38static char sccsid[] = "@(#)rwhod.c 8.1 (Berkeley) 6/6/93"; 39#endif /* not lint */ 40#endif 41 42#include <sys/cdefs.h> | 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 --- 26 unchanged lines hidden (view full) --- 35 36#if 0 37#ifndef lint 38static char sccsid[] = "@(#)rwhod.c 8.1 (Berkeley) 6/6/93"; 39#endif /* not lint */ 40#endif 41 42#include <sys/cdefs.h> |
43__FBSDID("$FreeBSD: head/usr.sbin/rwhod/rwhod.c 133249 2004-08-07 04:28:56Z imp $"); | 43__FBSDID("$FreeBSD: head/usr.sbin/rwhod/rwhod.c 141918 2005-02-14 17:42:58Z stefanf $"); |
44 45#include <sys/param.h> 46#include <sys/socket.h> 47#include <sys/stat.h> 48#include <sys/signal.h> 49#include <sys/ioctl.h> 50#include <sys/sysctl.h> 51 --- 207 unchanged lines hidden (view full) --- 259 if (!configure(s)) 260 exit(1); 261 if (!quiet_mode) { 262 signal(SIGALRM, onalrm); 263 onalrm(0); 264 } 265 for (;;) { 266 struct whod wd; | 44 45#include <sys/param.h> 46#include <sys/socket.h> 47#include <sys/stat.h> 48#include <sys/signal.h> 49#include <sys/ioctl.h> 50#include <sys/sysctl.h> 51 --- 207 unchanged lines hidden (view full) --- 259 if (!configure(s)) 260 exit(1); 261 if (!quiet_mode) { 262 signal(SIGALRM, onalrm); 263 onalrm(0); 264 } 265 for (;;) { 266 struct whod wd; |
267 int cc, whod, len = sizeof(from); | 267 socklen_t len = sizeof(from); 268 int cc, whod; |
268 time_t t; 269 270 cc = recvfrom(s, (char *)&wd, sizeof(struct whod), 0, 271 (struct sockaddr *)&from, &len); 272 if (cc <= 0) { 273 if (cc < 0 && errno != EINTR) 274 syslog(LOG_WARNING, "recv: %m"); 275 continue; --- 464 unchanged lines hidden --- | 269 time_t t; 270 271 cc = recvfrom(s, (char *)&wd, sizeof(struct whod), 0, 272 (struct sockaddr *)&from, &len); 273 if (cc <= 0) { 274 if (cc < 0 && errno != EINTR) 275 syslog(LOG_WARNING, "recv: %m"); 276 continue; --- 464 unchanged lines hidden --- |