From 05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 18 Mar 2010 10:10:32 +0100 Subject: Fix lots of warnings, most around string literals... ...that were converted to char* when they should have been converted to const char *. Use braces for empty if/else statements. --- socket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'socket.h') diff --git a/socket.h b/socket.h index a32a3422..b340c4ce 100644 --- a/socket.h +++ b/socket.h @@ -44,7 +44,7 @@ int SockPeek(int sock); Write a chunk of bytes to the socket (matches interface of fwrite). Returns number of bytes successfully written. */ -int SockWrite(int sock, char *buf, int size); +int SockWrite(int sock, const char *buf, int size); /* from /usr/include/sys/cdefs.h */ #if !defined __GNUC__ || __GNUC__ < 2 @@ -75,7 +75,7 @@ FIXME: document this int UnixOpen(const char *path); #ifdef SSL_ENABLE -int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char *certpath, +int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck, char *certpath, char *fingerprint, char *servercname, char *label, char **remotename); #endif /* SSL_ENABLE */ -- cgit v1.2.3