made Curl_nss_send() take const data to kill compiler warning

This commit is contained in:
Daniel Stenberg 2008-06-21 21:19:42 +00:00
parent a837bd08b0
commit 98042b858d
3 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@ LIBCURL_LIBS = @LIBCURL_LIBS@
# we use srcdir/lib for the lib-private header files # we use srcdir/lib for the lib-private header files
INCLUDES = -I$(top_srcdir)/include \ INCLUDES = -I$(top_srcdir)/include \
-I$(top_builddir)/lib \ -I$(top_builddir)/lib
-I$(top_srcdir)/lib
VERSION=-version-info 5:0:1 VERSION=-version-info 5:0:1

View File

@ -1195,7 +1195,7 @@ error:
/* return number of sent (non-SSL) bytes */ /* return number of sent (non-SSL) bytes */
int Curl_nss_send(struct connectdata *conn, /* connection data */ int Curl_nss_send(struct connectdata *conn, /* connection data */
int sockindex, /* socketindex */ int sockindex, /* socketindex */
void *mem, /* send this data */ const void *mem, /* send this data */
size_t len) /* amount to write */ size_t len) /* amount to write */
{ {
PRInt32 err; PRInt32 err;

View File

@ -45,7 +45,7 @@ void Curl_nss_cleanup(void);
int Curl_nss_send(struct connectdata *conn, int Curl_nss_send(struct connectdata *conn,
int sockindex, int sockindex,
void *mem, const void *mem,
size_t len); size_t len);
ssize_t Curl_nss_recv(struct connectdata *conn, /* connection data */ ssize_t Curl_nss_recv(struct connectdata *conn, /* connection data */
int num, /* socketindex */ int num, /* socketindex */