From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 5 01:00:07 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C94916A469 for ; Tue, 5 Feb 2008 01:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EE44513C469 for ; Tue, 5 Feb 2008 01:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m15106jJ088600 for ; Tue, 5 Feb 2008 01:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m15106MD088599; Tue, 5 Feb 2008 01:00:06 GMT (envelope-from gnats) Resent-Date: Tue, 5 Feb 2008 01:00:06 GMT Resent-Message-Id: <200802050100.m15106MD088599@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, chargen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6933E16A420 for ; Tue, 5 Feb 2008 00:50:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5CB7513C45A for ; Tue, 5 Feb 2008 00:50:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m150mXl3071466 for ; Tue, 5 Feb 2008 00:48:33 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m150mXa9071465; Tue, 5 Feb 2008 00:48:33 GMT (envelope-from nobody) Message-Id: <200802050048.m150mXa9071465@www.freebsd.org> Date: Tue, 5 Feb 2008 00:48:33 GMT From: chargen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/120274: [cryptotools] [patch] minor patches to cryptotools X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 01:00:07 -0000 >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 #include #include +#include #include #include --- /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 +#include +#include + #include #include #include @@ -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: