Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/hash In userland, use <sha1.h>, not <sys/sha1.h>.



details:   https://anonhg.NetBSD.org/src/rev/ac518ee918c6
branches:  trunk
changeset: 524830:ac518ee918c6
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sun Mar 31 14:17:19 2002 +0000

description:
In userland, use <sha1.h>, not <sys/sha1.h>.

diffstat:

 lib/libc/hash/sha1.c   |  6 +++---
 lib/libc/hash/sha1hl.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (59 lines):

diff -r 26421e6139e8 -r ac518ee918c6 lib/libc/hash/sha1.c
--- a/lib/libc/hash/sha1.c      Sun Mar 31 14:12:37 2002 +0000
+++ b/lib/libc/hash/sha1.c      Sun Mar 31 14:17:19 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sha1.c,v 1.8 2002/03/31 12:58:55 bjh21 Exp $   */
+/*     $NetBSD: sha1.c,v 1.9 2002/03/31 14:17:19 bjh21 Exp $   */
 /*     $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $       */
 
 /*
@@ -19,17 +19,17 @@
 
 #if defined(_KERNEL) || defined(_STANDALONE)
 #include <sys/param.h>
+#include <sys/sha1.h>
 #include <sys/systm.h>
 #define _DIAGASSERT(x) (void)0
 #else
 #include "namespace.h"
 #include <sys/types.h>
 #include <assert.h>
+#include <sha1.h>
 #include <string.h>
 #endif
 
-#include <sys/sha1.h>
-
 #if HAVE_CONFIG_H
 #include "config.h"
 #endif
diff -r 26421e6139e8 -r ac518ee918c6 lib/libc/hash/sha1hl.c
--- a/lib/libc/hash/sha1hl.c    Sun Mar 31 14:12:37 2002 +0000
+++ b/lib/libc/hash/sha1hl.c    Sun Mar 31 14:17:19 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sha1hl.c,v 1.7 2002/03/31 12:58:55 bjh21 Exp $ */
+/*     $NetBSD: sha1hl.c,v 1.8 2002/03/31 14:17:19 bjh21 Exp $ */
 
 /* sha1hl.c
  * ----------------------------------------------------------------------------
@@ -15,10 +15,10 @@
 #include <sys/file.h>
 #include <sys/types.h>
 #include <sys/uio.h>
-#include <sys/sha1.h>
 
 #include <assert.h>
 #include <errno.h>
+#include <sha1.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -30,7 +30,7 @@
 #if !HAVE_SHA1_H
 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: sha1hl.c,v 1.7 2002/03/31 12:58:55 bjh21 Exp $");
+__RCSID("$NetBSD: sha1hl.c,v 1.8 2002/03/31 14:17:19 bjh21 Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #if defined(__weak_alias)



Home | Main Index | Thread Index | Old Index