]> granicus.if.org Git - curl/commitdiff
fix warning in GnuTLS build by making sure Curl_gtls_send() takes a const
authorDaniel Stenberg <daniel@haxx.se>
Tue, 10 Jun 2008 21:53:59 +0000 (21:53 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 Jun 2008 21:53:59 +0000 (21:53 +0000)
void *

lib/gtls.c
lib/gtls.h

index 6e762f16161faaa24a4a6d89085a375d84e415ad..89a8079bfee8397ae2872fa05e9c8b2399d9909f 100644 (file)
@@ -607,9 +607,9 @@ Curl_gtls_connect(struct connectdata *conn,
 
 /* return number of sent (non-SSL) bytes */
 ssize_t Curl_gtls_send(struct connectdata *conn,
-                   int sockindex,
-                   void *mem,
-                   size_t len)
+                       int sockindex,
+                       const void *mem,
+                       size_t len)
 {
   ssize_t rc = gnutls_record_send(conn->ssl[sockindex].session, mem, len);
 
index 8dc0a30d4bc096003bf6f80c6e11ca270c44785d..ee560a9cb016c7805bde29043810a6924237ba5a 100644 (file)
@@ -7,7 +7,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -35,7 +35,7 @@ void Curl_gtls_close(struct connectdata *conn, int sockindex);
 
 /* return number of sent (non-SSL) bytes */
 ssize_t Curl_gtls_send(struct connectdata *conn, int sockindex,
-                       void *mem, size_t len);
+                       const void *mem, size_t len);
 ssize_t Curl_gtls_recv(struct connectdata *conn, /* connection data */
                        int num,                  /* socketindex */
                        char *buf,                /* store read data here */