Fix compilation in tools/tools/crypto and fix some minor issues.
authorSascha Wildner <swildner@dragonflybsd.org>
Sat, 26 Apr 2008 09:19:10 +0000 (09:19 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Sat, 26 Apr 2008 09:19:10 +0000 (09:19 +0000)
tools/tools/crypto/cryptostats.c
tools/tools/crypto/hifnstats.c
tools/tools/crypto/ubsecstats.c

index 14d1cfd..6dd0b69 100644 (file)
@@ -1,11 +1,13 @@
 /* $FreeBSD: src/tools/tools/crypto/cryptostats.c,v 1.1.2.1 2003/02/24 22:52:36 sam Exp $ */
-/* $DragonFly: src/tools/tools/crypto/cryptostats.c,v 1.2 2003/06/17 04:29:11 dillon Exp $ */
+/* $DragonFly: src/tools/tools/crypto/cryptostats.c,v 1.3 2008/04/26 09:19:10 swildner Exp $ */
 
 /*
  * Little program to dump the crypto statistics block and, optionally,
  * zero all the stats or just the timing stuff.
  */
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 #include <sys/types.h>
 #include <sys/sysctl.h>
index 4d2db32..d59fa76 100644 (file)
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/tools/tools/crypto/hifnstats.c,v 1.1.4.1 2003/06/03 00:13:13 sam Exp $
- * $DragonFly: src/tools/tools/crypto/hifnstats.c,v 1.2 2003/06/17 04:29:11 dillon Exp $
+ * $DragonFly: src/tools/tools/crypto/hifnstats.c,v 1.3 2008/04/26 09:19:10 swildner Exp $
  */
 #include <stdio.h>
 #include <sys/types.h>
-#include "../../../sys/dev/hifn/hifn7751var.h"
+#include "../../../sys/dev/crypto/hifn/hifn7751var.h"
 
 /*
  * Little program to dump the statistics block for the hifn driver.
@@ -41,7 +41,7 @@ main(int argc, char *argv[])
 
        slen = sizeof (stats);
        if (sysctlbyname("hw.hifn.stats", &stats, &slen, NULL, NULL) < 0)
-               err(1, "kern.hifn.stats");
+               err(1, "hw.hifn.stats");
 
        printf("input %llu bytes %u packets\n",
                stats.hst_ibytes, stats.hst_ipackets);
index f1554a6..1b5930f 100644 (file)
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/tools/tools/crypto/ubsecstats.c,v 1.3.4.1 2003/06/03 00:13:13 sam Exp $
- * $DragonFly: src/tools/tools/crypto/ubsecstats.c,v 1.2 2003/06/17 04:29:11 dillon Exp $
+ * $DragonFly: src/tools/tools/crypto/ubsecstats.c,v 1.3 2008/04/26 09:19:10 swildner Exp $
  */
 #include <stdio.h>
 #include <sys/types.h>
-#include "../../../sys/dev/ubsec/ubsecvar.h"
+#include "../../../sys/dev/crypto/ubsec/ubsecvar.h"
 
 /*
  * Little program to dump the statistics block for the ubsec driver.