]> git.pld-linux.org Git - packages/cnet.git/commitdiff
- patches to:
authorundefine <undefine@pld-linux.org>
Tue, 21 Sep 2004 15:02:30 +0000 (15:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
datadir - use /usr/share/cnet, not /usr/lib/cnet
longint - don't write warning by gcc - it break cnet

Changed files:
    cnet-datadir.patch -> 1.1
    cnet-longint.patch -> 1.1

cnet-datadir.patch [new file with mode: 0644]
cnet-longint.patch [new file with mode: 0644]

diff --git a/cnet-datadir.patch b/cnet-datadir.patch
new file mode 100644 (file)
index 0000000..e95c2ab
--- /dev/null
@@ -0,0 +1,11 @@
+--- src/config.h~      2004-05-12 20:13:43.000000000 +0200
++++ src/config.h       2004-09-21 15:57:34.821345520 +0200
+@@ -169,7 +169,7 @@
+ #if   defined(USE_FREEBSD)
+ #define       CNETPATH        "/usr/local/share/cnet:/usr/local/include:/usr/local/cnetlib"
+ #else
+-#define       CNETPATH        "/usr/local/cnetlib:/usr/lib/cnet:/cslinux/cnetlib"
++#define       CNETPATH        "/usr/share/cnet"
+ #endif
diff --git a/cnet-longint.patch b/cnet-longint.patch
new file mode 100644 (file)
index 0000000..13d066f
--- /dev/null
@@ -0,0 +1,11 @@
+--- EXAMPLES/protocol.c~       2003-03-31 05:22:07.000000000 +0200
++++ EXAMPLES/protocol.c        2004-09-21 16:04:46.317748096 +0200
+@@ -32,7 +32,7 @@
+ static void button_pressed(CnetEvent ev, CnetTimer timer, CnetData data)
+ {
+     printf("\n Node number     : %d\n", nodeinfo.nodenumber);
+-    printf(" Node address    : %ld\n", nodeinfo.address);
++    printf(" Node address    : %ld\n", (long int) nodeinfo.address);
+     printf(" Node name       : %s\n", nodeinfo.nodename);
+     printf(" Number of links : %d\n\n", nodeinfo.nlinks);
+ }
This page took 0.14426 seconds and 4 git commands to generate.