diff options
author | 2005-05-16 10:07:48 +0000 | |
---|---|---|
committer | 2005-05-16 10:07:48 +0000 | |
commit | 5ce213869c392bba9f909e78771b445ad854dbbf (patch) | |
tree | 8a229942585ecbbb714efe93c0fd8d404e7d09fc /lib | |
parent | desupport dontpub in arp.8 and arp -? (Debian Bug #203396) (diff) | |
download | net-tools-5ce213869c392bba9f909e78771b445ad854dbbf.tar.gz net-tools-5ce213869c392bba9f909e78771b445ad854dbbf.tar.bz2 net-tools-5ce213869c392bba9f909e78771b445ad854dbbf.zip |
make it compile with 2.4 and 2.6 kernel headers (Debian Bug #271678)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/x25_sr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x25_sr.c b/lib/x25_sr.c index 649c4e6..8783fa3 100644 --- a/lib/x25_sr.c +++ b/lib/x25_sr.c @@ -76,8 +76,8 @@ static int X25_setroute(int action, int options, char **args) } rt.sigdigits=sigdigits; - /* x25_route_struct.address isn't type struct sockaddr_x25, Why? */ - memcpy(&rt.address, &sx25.sx25_addr, sizeof(struct x25_address)); + /* this works with 2.4 and 2.6 headers struct x25_address vs. typedef */ + memcpy(&rt.address, &sx25.sx25_addr, sizeof(sx25.sx25_addr)); while (*args) { if (!strcmp(*args,"device") || !strcmp(*args,"dev")) { |