Date: Tue, 5 Feb 2008 00:48:33 GMT From: chargen <chargen@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/120274: [cryptotools] [patch] minor patches to cryptotools Message-ID: <200802050048.m150mXa9071465@www.freebsd.org> Resent-Message-ID: <200802050100.m15106MD088599@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 120274 >Category: misc >Synopsis: [cryptotools] [patch] minor patches to cryptotools >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 05 01:00:06 UTC 2008 >Closed-Date: >Last-Modified: >Originator: chargen >Release: 7.0-PRERELEASE >Organization: none >Environment: FreeBSD packetstorm 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Sun Feb 3 01:06:38 CET 2008 root@packetstorm:/usr/src/sys/i386/compile/PACKETSTORM i386 >Description: minor cleanups in /src/tools/tools/crypto/ in order to avoid some unnecessary compiler errors gcc -v Using built-in specs. Target: i386-undermydesk-freebsd Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 4.2.1 20070719 [FreeBSD] >How-To-Repeat: >Fix: patches included Patch attached with submission follows: --- /usr/src/tools/tools/crypto/cryptotest.c 2007-03-21 04:42:51.000000000 +0100 +++ cryptotest.c 2008-02-05 01:36:02.000000000 +0100 @@ -93,6 +93,7 @@ #include <sys/mman.h> #include <paths.h> #include <stdlib.h> +#include <string.h> #include <sys/sysctl.h> #include <sys/time.h> --- /usr/src/tools/tools/crypto/cryptostats.c 2003-03-19 02:53:55.000000000 +0100 +++ cryptostats.c 2008-02-05 01:36:05.000000000 +0100 @@ -32,6 +32,9 @@ */ #include <stdio.h> +#include <stdlib.h> +#include <string.h> + #include <sys/types.h> #include <sys/sysctl.h> #include <sys/time.h> @@ -58,7 +61,7 @@ size_t slen; slen = sizeof (stats); - if (sysctlbyname("kern.crypto_stats", &stats, &slen, NULL, NULL) < 0) + if (sysctlbyname("kern.crypto_stats", &stats, &slen, NULL, sizeof(NULL)) < 0) err(1, "kern.cryptostats"); if (argc > 1 && strcmp(argv[1], "-z") == 0) { >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802050048.m150mXa9071465>