Module Name:    src
Committed By:   christos
Date:           Tue Jan 10 17:46:26 UTC 2017

Modified Files:
        src/lib/libc/hash: hmac.c

Log Message:
add missing cast.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/hash/hmac.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/hash/hmac.c
diff -u src/lib/libc/hash/hmac.c:1.3 src/lib/libc/hash/hmac.c:1.4
--- src/lib/libc/hash/hmac.c:1.3	Fri Jul  1 18:41:39 2016
+++ src/lib/libc/hash/hmac.c	Tue Jan 10 12:46:26 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: hmac.c,v 1.3 2016/07/01 22:41:39 christos Exp $	*/
+/*	$NetBSD: hmac.c,v 1.4 2017/01/10 17:46:26 christos Exp $	*/
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: hmac.c,v 1.3 2016/07/01 22:41:39 christos Exp $");
+__RCSID("$NetBSD: hmac.c,v 1.4 2017/01/10 17:46:26 christos Exp $");
 
 #include <string.h>
 #include <stdlib.h>
@@ -153,7 +153,7 @@ hmac(const char *name, 
 	(*h->final)(p, c);
 
 	(*h->init)(c);
-	(*h->update)(c, opad, h->blocksize);
+	(*h->update)(c, opad, (unsigned int)h->blocksize);
 	(*h->update)(c, digest, (unsigned int)h->digsize);
 	(*h->final)(p, c);
 

Reply via email to