summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/wsmoused/wsmoused.c4
-rw-r--r--usr.sbin/ypserv/ypserv/ypserv.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c
index b20ef981b3b..db252ea5639 100644
--- a/usr.sbin/wsmoused/wsmoused.c
+++ b/usr.sbin/wsmoused/wsmoused.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmoused.c,v 1.11 2002/03/27 18:54:09 jbm Exp $ */
+/* $OpenBSD: wsmoused.c,v 1.12 2002/05/26 09:32:44 deraadt Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -398,7 +398,7 @@ wsmoused(void)
background = TRUE;
fp = fopen(pidfile, "w");
if (fp != NULL) {
- fprintf(fp, "%d\n", getpid());
+ fprintf(fp, "%ld\n", (long)getpid());
fclose(fp);
}
}
diff --git a/usr.sbin/ypserv/ypserv/ypserv.c b/usr.sbin/ypserv/ypserv/ypserv.c
index cc283d4d5fe..e0073649dca 100644
--- a/usr.sbin/ypserv/ypserv/ypserv.c
+++ b/usr.sbin/ypserv/ypserv/ypserv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypserv.c,v 1.21 2002/02/19 19:39:41 millert Exp $ */
+/* $OpenBSD: ypserv.c,v 1.22 2002/05/26 09:32:44 deraadt Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypserv.c,v 1.21 2002/02/19 19:39:41 millert Exp $";
+static char rcsid[] = "$OpenBSD: ypserv.c,v 1.22 2002/05/26 09:32:44 deraadt Exp $";
#endif
#include <sys/types.h>
@@ -454,8 +454,8 @@ main(argc, argv)
openlog("ypserv", LOG_PID, LOG_DAEMON);
} else {
#ifndef RPC_SVC_FG
- int size;
- int pid, i;
+ int size, i;
+ pid_t pid;
pid = fork();
if (pid < 0) {