framework for the installation of the configuration files. Fixed compile warning message due to implicit casting
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
$NetBSD: patch-an,v 1.2 2006/04/21 02:07:54 wulf Exp $
|
|
|
|
--- box_sys.c.orig 2000-04-27 22:18:53.000000000 +0930
|
|
+++ box_sys.c 2006-04-14 11:53:42.000000000 +0930
|
|
@@ -1679,6 +1679,14 @@
|
|
wlnuser(unr, "NetBSD porting : (c) 1999 Berndt Josef Wulf, VK5ABN");
|
|
#define __dp_version_ok
|
|
#endif
|
|
+#ifdef __DragonFly__
|
|
+ sprintf(hs, "dpbox (DragonFly) v%s%s %s", dp_vnr, dp_vnr_sub, dp_date);
|
|
+ wuser(unr, hs);
|
|
+ wlnuser(unr, " (c) 1990-2000 Joachim Schurig, DL8HBS");
|
|
+ wlnuser(unr, "Linux porting : (c) 1994-1997 Mark Wahl, DL4YBG");
|
|
+ wlnuser(unr, "NetBSD porting : (c) 1999 Berndt Josef Wulf, VK5ABN");
|
|
+#define __dp_version_ok
|
|
+#endif
|
|
#ifndef __dp_version_ok
|
|
sprintf(hs, "dpbox v%s%s %s", dp_vnr, dp_vnr_sub, dp_date);
|
|
wuser(unr, hs);
|
|
@@ -3123,7 +3131,7 @@
|
|
for (x = 1; x <= 53; x++) {
|
|
do {
|
|
c = dp_randomize(48, 122);
|
|
- } while (!isalnum(c));
|
|
+ } while (!isalnum((u_char) c));
|
|
sprintf(hs + strlen(hs), "%c", c);
|
|
|
|
}
|
|
@@ -3174,7 +3182,7 @@
|
|
for (x = 1; x <= 1620; x++) {
|
|
do {
|
|
c = dp_randomize(48, 122);
|
|
- } while (!isalnum(c));
|
|
+ } while (!isalnum((u_char) c));
|
|
sfwrite(k, 1, &c);
|
|
}
|
|
sfclose(&k);
|