- LP64 and other portability issues - Find the correct <kafs.h> in order to get the right prototype for kafs_settoken_rxkad. - Find the correct <com_err.h> - Add support for -DMULTIPROCESSOR and other kernel compile options Bump PKGREVISION.
50 lines
1.7 KiB
Text
50 lines
1.7 KiB
Text
$NetBSD: patch-bh,v 1.4 2005/03/25 17:40:25 wennmach Exp $
|
|
|
|
Portability fix for output conversion.
|
|
|
|
--- rx/rxperf.c.orig 2005-03-22 16:02:32.000000000 +0100
|
|
+++ rx/rxperf.c 2005-03-22 16:05:46.000000000 +0100
|
|
@@ -776,8 +776,8 @@
|
|
if (ptr != 0 && ptr[0] != '\0')
|
|
errx (1, "can't resolve readsize");
|
|
if (rxread_size > sizeof(somebuf))
|
|
- errx(1, "%d > sizeof(somebuf) (%d)",
|
|
- rxread_size, sizeof(somebuf));
|
|
+ errx(1, "%d > sizeof(somebuf) (%ld)",
|
|
+ rxread_size, (unsigned long)sizeof(somebuf));
|
|
break;
|
|
case 'p':
|
|
port = strtol(optarg, &ptr, 0);
|
|
@@ -789,8 +789,8 @@
|
|
if (ptr != 0 && ptr[0] != '\0')
|
|
errx (1, "can't resolve writesize");
|
|
if (rxwrite_size > sizeof(somebuf))
|
|
- errx(1, "%d > sizeof(somebuf) (%d)",
|
|
- rxwrite_size, sizeof(somebuf));
|
|
+ errx(1, "%d > sizeof(somebuf) (%ld)",
|
|
+ rxwrite_size, (unsigned long)sizeof(somebuf));
|
|
break;
|
|
default:
|
|
usage();
|
|
@@ -870,8 +870,8 @@
|
|
if (ptr != 0 && ptr[0] != '\0')
|
|
errx (1, "can't resolve readsize");
|
|
if (rxread_size > sizeof(somebuf))
|
|
- errx(1, "%d > sizeof(somebuf) (%d)",
|
|
- rxread_size, sizeof(somebuf));
|
|
+ errx(1, "%d > sizeof(somebuf) (%ld)",
|
|
+ rxread_size, (unsigned long)sizeof(somebuf));
|
|
break;
|
|
case 's':
|
|
host = strdup(optarg);
|
|
@@ -883,8 +883,8 @@
|
|
if (ptr != 0 && ptr[0] != '\0')
|
|
errx (1, "can't resolve writesize");
|
|
if (rxwrite_size > sizeof(somebuf))
|
|
- errx(1, "%d > sizeof(somebuf) (%d)",
|
|
- rxwrite_size, sizeof(somebuf));
|
|
+ errx(1, "%d > sizeof(somebuf) (%ld)",
|
|
+ rxwrite_size, (unsigned long)sizeof(somebuf));
|
|
break;
|
|
case 'T':
|
|
times = strtol (optarg, &ptr, 0);
|