From: joergs Date: Sun, 26 May 2002 23:23:10 +0000 (+0000) Subject: AmigaOS: Fixed wrong type for len in write_socket() X-Git-Tag: v_3_1_archive_branchpoint~275 X-Git-Url: http://www.privoxy.org/gitweb/introduction.html?a=commitdiff_plain;h=4393f93d91a1b6402042906607ab8abceabc6d7e;p=privoxy.git AmigaOS: Fixed wrong type for len in write_socket() --- diff --git a/jbsockets.c b/jbsockets.c index a3859656..9ee43150 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -1,4 +1,4 @@ -const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.34 2002/04/08 20:31:41 swa Exp $"; +const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.35 2002/04/26 15:50:04 joergs Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $ @@ -35,6 +35,9 @@ const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.34 2002/04/08 20:31:41 swa Ex * * Revisions : * $Log: jbsockets.c,v $ + * Revision 1.35 2002/04/26 15:50:04 joergs + * AmigaOS: No socklen_t, added AMIGA to the systems using int instead. + * * Revision 1.34 2002/04/08 20:31:41 swa * fixed JB spelling * @@ -393,7 +396,11 @@ jb_socket connect_to(const char *host, int portnum, struct client_state *csp) * nonzero on error. * *********************************************************************/ +#ifdef AMIGA +int write_socket(jb_socket fd, const char *buf, ssize_t len) +#else int write_socket(jb_socket fd, const char *buf, size_t len) +#endif { if (len == 0) { diff --git a/jbsockets.h b/jbsockets.h index 78f2ee0d..dc8f7a41 100644 --- a/jbsockets.h +++ b/jbsockets.h @@ -1,6 +1,6 @@ #ifndef JBSOCKETS_H_INCLUDED #define JBSOCKETS_H_INCLUDED -#define JBSOCKETS_H_VERSION "$Id: jbsockets.h,v 1.8 2002/03/26 22:29:54 swa Exp $" +#define JBSOCKETS_H_VERSION "$Id: jbsockets.h,v 1.9 2002/04/08 20:31:41 swa Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jbsockets.h,v $ @@ -37,6 +37,9 @@ * * Revisions : * $Log: jbsockets.h,v $ + * Revision 1.9 2002/04/08 20:31:41 swa + * fixed JB spelling + * * Revision 1.8 2002/03/26 22:29:54 swa * we have a new homepage! * @@ -97,7 +100,11 @@ extern "C" { struct client_state; extern jb_socket connect_to(const char *host, int portnum, struct client_state *csp); +#ifdef AMIGA +extern int write_socket(jb_socket fd, const char *buf, ssize_t n); +#else extern int write_socket(jb_socket fd, const char *buf, size_t n); +#endif extern int read_socket(jb_socket fd, char *buf, int n); extern void close_socket(jb_socket fd);