summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/date/date.c4
-rw-r--r--bin/md5/md5.c8
-rw-r--r--bin/mt/mtrmt.c4
3 files changed, 10 insertions, 6 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index b6a2a4f807c..a6be81cc3dd 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: date.c,v 1.37 2011/07/08 18:07:16 deraadt Exp $ */
+/* $OpenBSD: date.c,v 1.38 2012/12/04 02:38:50 deraadt Exp $ */
/* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */
/*
@@ -30,7 +30,7 @@
* SUCH DAMAGE.
*/
-#include <sys/param.h>
+#include <sys/types.h>
#include <sys/time.h>
#include <ctype.h>
diff --git a/bin/md5/md5.c b/bin/md5/md5.c
index 956a61b8a73..af0f1748aa0 100644
--- a/bin/md5/md5.c
+++ b/bin/md5/md5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5.c,v 1.53 2011/07/05 23:39:27 tedu Exp $ */
+/* $OpenBSD: md5.c,v 1.54 2012/12/04 02:38:51 deraadt Exp $ */
/*
* Copyright (c) 2001,2003,2005-2006 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -20,7 +20,7 @@
* Materiel Command, USAF, under agreement number F39502-99-1-0512.
*/
-#include <sys/param.h>
+#include <sys/types.h>
#include <sys/queue.h>
#include <netinet/in.h>
#include <ctype.h>
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
#include <time.h>
#include <unistd.h>
@@ -46,6 +47,9 @@
#define MAX_DIGEST_LEN 128
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#define MAX(a,b) (((a)>(b))?(a):(b))
+
enum program_mode {
MODE_MD5,
MODE_SHA1,
diff --git a/bin/mt/mtrmt.c b/bin/mt/mtrmt.c
index cc8cb7bd867..01847bc91a8 100644
--- a/bin/mt/mtrmt.c
+++ b/bin/mt/mtrmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mtrmt.c,v 1.19 2012/12/04 02:34:05 deraadt Exp $ */
+/* $OpenBSD: mtrmt.c,v 1.20 2012/12/04 02:38:51 deraadt Exp $ */
/* $NetBSD: mtrmt.c,v 1.2 1996/03/06 06:22:07 scottr Exp $ */
/*-
@@ -30,7 +30,7 @@
* SUCH DAMAGE.
*/
-#include <sys/param.h>
+#include <sys/types.h>
#include <sys/mtio.h>
#include <sys/ioctl.h>
#include <sys/socket.h>