aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-20 10:24:21 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-20 10:24:21 +0000
commit80eca78e61ac6058abe0154d8e51860581dd92d5 (patch)
tree4d54baa73caf736f0d6bc32b697272f5e2428752 /src/socket.h
parent9284b3b9a8936ac973589bef2c3d791dae10efcf (diff)
imap.c: fixed parse errors when embedded null characters appeared in headers.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@353 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/socket.h b/src/socket.h
index 05c43b89..35447cbe 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -87,7 +87,7 @@ gint sock_read (SockInfo *sock, gchar *buf, gint len);
gint sock_write (SockInfo *sock, const gchar *buf, gint len);
gint sock_write_all (SockInfo *sock, const gchar *buf, gint len);
gint sock_gets (SockInfo *sock, gchar *buf, gint len);
-gchar *sock_getline (SockInfo *sock);
+gint sock_getline (SockInfo *sock, gchar **line);
gint sock_puts (SockInfo *sock, const gchar *buf);
gint sock_peek (SockInfo *sock, gchar *buf, gint len);
gint sock_close (SockInfo *sock);
@@ -101,7 +101,7 @@ gint fd_read (gint sock, gchar *buf, gint len);
gint fd_write (gint sock, const gchar *buf, gint len);
gint fd_write_all (gint sock, const gchar *buf, gint len);
gint fd_gets (gint sock, gchar *buf, gint len);
-gchar *fd_getline (gint sock);
+gint fd_getline (gint sock, gchar **line);
gint fd_close (gint sock);
/* Functions for SSL */
@@ -110,7 +110,7 @@ gint ssl_read (SSL *ssl, gchar *buf, gint len);
gint ssl_write (SSL *ssl, const gchar *buf, gint len);
gint ssl_write_all (SSL *ssl, const gchar *buf, gint len);
gint ssl_gets (SSL *ssl, gchar *buf, gint len);
-gchar *ssl_getline (SSL *ssl);
+gint ssl_getline (SSL *ssl, gchar **line);
gint ssl_peek (SSL *ssl, gchar *buf, gint len);
#endif