summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2013-10-04 07:02:27 +0000
committerdjm <djm@openbsd.org>2013-10-04 07:02:27 +0000
commitcf5504b81c8ce9686c1dd511e1a007f34a730c13 (patch)
treef5f0fe0f2287c9ca2c6556d7006f399d94c4e070 /lib/libc
parent_thread_sys_tcdrain() doesn't exist and isn't used (diff)
downloadwireguard-openbsd-cf5504b81c8ce9686c1dd511e1a007f34a730c13.tar.xz
wireguard-openbsd-cf5504b81c8ce9686c1dd511e1a007f34a730c13.zip
a couple of warning fixes and an RCS marker; ok markus@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/crypt/chacha_private.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/crypt/chacha_private.h b/lib/libc/crypt/chacha_private.h
index fa085fb6ae3..7c3680fa6d6 100644
--- a/lib/libc/crypt/chacha_private.h
+++ b/lib/libc/crypt/chacha_private.h
@@ -4,6 +4,8 @@ D. J. Bernstein
Public domain.
*/
+/* $OpenBSD: chacha_private.h,v 1.2 2013/10/04 07:02:27 djm Exp $ */
+
typedef unsigned char u8;
typedef unsigned int u32;
@@ -88,9 +90,9 @@ chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
{
u32 x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15;
u32 j0, j1, j2, j3, j4, j5, j6, j7, j8, j9, j10, j11, j12, j13, j14, j15;
- u8 *ctarget;
+ u8 *ctarget = NULL;
u8 tmp[64];
- int i;
+ u_int i;
if (!bytes) return;