diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-06-21 21:19:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-06-21 21:19:42 +0000 |
commit | 98042b858d9175c99596867ec79c58ff04cf4996 (patch) | |
tree | 29ad067a77c20bc9eb78becf10917e5137a9a0c7 | |
parent | a837bd08b09abefcc46d4fc30d0622696972dcfc (diff) |
made Curl_nss_send() take const data to kill compiler warning
-rw-r--r-- | lib/Makefile.am | 4 | ||||
-rw-r--r-- | lib/nss.c | 2 | ||||
-rw-r--r-- | lib/nssg.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 58277de37..97142d287 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -47,8 +47,8 @@ LIBCURL_LIBS = @LIBCURL_LIBS@ # we use srcdir/lib for the lib-private header files INCLUDES = -I$(top_srcdir)/include \ - -I$(top_builddir)/lib \ - -I$(top_srcdir)/lib + -I$(top_builddir)/lib + VERSION=-version-info 5:0:1 @@ -1195,7 +1195,7 @@ error: /* return number of sent (non-SSL) bytes */ int Curl_nss_send(struct connectdata *conn, /* connection data */ int sockindex, /* socketindex */ - void *mem, /* send this data */ + const void *mem, /* send this data */ size_t len) /* amount to write */ { PRInt32 err; diff --git a/lib/nssg.h b/lib/nssg.h index 0c6cd5d63..183998cd1 100644 --- a/lib/nssg.h +++ b/lib/nssg.h @@ -45,7 +45,7 @@ void Curl_nss_cleanup(void); int Curl_nss_send(struct connectdata *conn, int sockindex, - void *mem, + const void *mem, size_t len); ssize_t Curl_nss_recv(struct connectdata *conn, /* connection data */ int num, /* socketindex */ |