]> granicus.if.org Git - curl/commitdiff
made Curl_nss_send() take const data to kill compiler warning
authorDaniel Stenberg <daniel@haxx.se>
Sat, 21 Jun 2008 21:19:42 +0000 (21:19 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Jun 2008 21:19:42 +0000 (21:19 +0000)
lib/Makefile.am
lib/nss.c
lib/nssg.h

index 58277de3726a11358445396b6968534114d6bb3b..97142d2875922f708b5af553cb92721b28fc5a5a 100644 (file)
@@ -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
 
index 07bb2edd0e4406c309b3d43cc9cce3fb8086c253..b6ed59c8b7987823834ebd6d5361684e04a19b88 100644 (file)
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -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;
index 0c6cd5d6310fbca6c86f5c460db960f7c280ea24..183998cd1f07e10968dc23542f7399623c493f54 100644 (file)
@@ -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 */