summaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.ypupdated/ypupdated_main.c
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1997-10-13 11:22:39 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1997-10-13 11:22:39 +0000
commit1e96bb57a67cf7296e06e4e57554c017e3c9948c (patch)
tree3621fe089961c75ca021c90ab83ffb3af34762e9 /usr.sbin/rpc.ypupdated/ypupdated_main.c
parentfdd839012ab75c61be4a00034d4f87f913525b66 (diff)
Notes
Diffstat (limited to 'usr.sbin/rpc.ypupdated/ypupdated_main.c')
-rw-r--r--usr.sbin/rpc.ypupdated/ypupdated_main.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.sbin/rpc.ypupdated/ypupdated_main.c b/usr.sbin/rpc.ypupdated/ypupdated_main.c
index 95bc51d919a6..854f6112d199 100644
--- a/usr.sbin/rpc.ypupdated/ypupdated_main.c
+++ b/usr.sbin/rpc.ypupdated/ypupdated_main.c
@@ -28,10 +28,13 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id: ypupdated_main.c,v 1.1 1996/12/25 19:31:28 wpaul Exp wpaul $
*/
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
+
#include "ypupdate_prot.h"
#include <stdio.h>
#include <stdlib.h> /* getenv, exit */
@@ -63,9 +66,6 @@
#endif
#define _RPCSVC_CLOSEDOWN 120
-#ifndef lint
-static const char rcsid[] = "$Id: ypupdated_main.c,v 1.1 1996/12/25 19:31:28 wpaul Exp wpaul $";
-#endif /* not lint */
int _rpcpmstart; /* Started by a port monitor ? */
static int _rpcfdtype;
/* Whether Stream or Datagram ? */
@@ -87,7 +87,7 @@ void _msgout(char* msg)
if (_rpcpmstart)
syslog(LOG_ERR, msg);
else
- (void) fprintf(stderr, "%s\n", msg);
+ warnx("%s", msg);
#else
syslog(LOG_ERR, msg);
#endif
@@ -146,7 +146,7 @@ ypupdated_svc_run()
if (errno == EINTR) {
continue;
}
- perror("svc_run: - select failed");
+ warn("svc_run: - select failed");
return;
case 0:
continue;
@@ -181,10 +181,11 @@ static void reaper(sig)
void usage()
{
- fprintf(stderr, "%s [-p path]\n", progname);
+ fprintf(stderr, "rpc.ypupdatedd [-p path]\n");
exit(0);
}
+int
main(argc, argv)
int argc;
char *argv[];