head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.34 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.32 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.30 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.28 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.26 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.24 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.22 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.20 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.18 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.16 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.14 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.12 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.10 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.8 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.6 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.4 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.2 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.2.0.4 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.2 pkgsrc-2005Q4-base:1.2; locks; strict; comment @# @; 1.3 date 2006.05.26.08.44.28; author adam; state dead; branches; next 1.2; 1.2 date 2005.11.07.12.55.06; author joerg; state Exp; branches; next 1.1; 1.1 date 2005.10.07.17.15.40; author joerg; state Exp; branches; next ; desc @@ 1.3 log @Changes 0.8.41: * Added support for libmcrypt * Bug fixes @ text @$NetBSD: patch-ac,v 1.2 2005/11/07 12:55:06 joerg Exp $ --- net.c.orig 2001-09-07 20:29:03.000000000 +0000 +++ net.c @@@@ -22,7 +22,6 @@@@ #include "parse.h" #include "crc.h" -extern int errno; char *dact_urls[256]; /* @@@@ -85,7 +84,7 @@@@ int open_net(const char *pathname, int f mode_t mode; va_start(args, flags); - mode = va_arg(args, mode_t); + mode = va_arg(args, int); va_end(args); if (!parse_url(pathname,scheme,username,password,host,&port,file)) { @@@@ -292,7 +291,7 @@@@ int open_net(const char *pathname, int f mode_t mode; va_start(args, flags); - mode = va_arg(args, mode_t); + mode = va_arg(args, int); va_end(args); return(open(pathname,flags,mode)); @ 1.2 log @Don't define extern int errno, just depend on errno.h for it. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Explicitly cast third argument of open_net to int and use int instead of mode_t. This unbreaks use with the GCC 3.4+ builtin va_arg. Fix the use of ctype macros. Bump revision for that. @ text @d3 1 a3 1 --- net.c.orig 2005-10-07 19:06:20.000000000 +0200 d5 9 a13 1 @@@@ -85,7 +85,7 @@@@ int open_net(const char *pathname, int f d22 1 a22 1 @@@@ -292,7 +292,7 @@@@ int open_net(const char *pathname, int f @