projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b52391
)
In connect_to(), don't declare the variable 'flags' on OS/2 where it isn't used.
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 13 Jun 2010 12:28:27 +0000
(12:28 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 13 Jun 2010 12:28:27 +0000
(12:28 +0000)
Spotted by cppcheck.
jbsockets.c
patch
|
blob
|
history
diff --git
a/jbsockets.c
b/jbsockets.c
index
b234b20
..
7144028
100644
(file)
--- a/
jbsockets.c
+++ b/
jbsockets.c
@@
-1,4
+1,4
@@
-const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.7
2 2010/02/15 15:14:10
fabiankeil Exp $";
+const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.7
3 2010/04/23 11:53:48
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
@@
-146,9
+146,9
@@
jb_socket connect_to(const char *host, int portnum, struct client_state *csp)
jb_socket fd;
fd_set wfds;
struct timeval tv[1];
jb_socket fd;
fd_set wfds;
struct timeval tv[1];
-#if !defined(_WIN32) && !defined(__BEOS__) && !defined(AMIGA)
+#if !defined(_WIN32) && !defined(__BEOS__) && !defined(AMIGA)
&& !defined(__OS2__)
int flags;
int flags;
-#endif
/* !defined(_WIN32) && !defined(__BEOS__) && !defined(AMIGA) */
+#endif
int connect_failed;
#ifdef FEATURE_ACL
int connect_failed;
#ifdef FEATURE_ACL
@@
-344,9
+344,9
@@
jb_socket connect_to(const char *host, int portnum, struct client_state *csp)
unsigned int addr;
fd_set wfds;
struct timeval tv[1];
unsigned int addr;
fd_set wfds;
struct timeval tv[1];
-#if !defined(_WIN32) && !defined(__BEOS__) && !defined(AMIGA)
+#if !defined(_WIN32) && !defined(__BEOS__) && !defined(AMIGA)
&& !defined(__OS2__)
int flags;
int flags;
-#endif
/* !defined(_WIN32) && !defined(__BEOS__) && !defined(AMIGA) */
+#endif
#ifdef FEATURE_ACL
struct access_control_addr dst[1];
#ifdef FEATURE_ACL
struct access_control_addr dst[1];