Mercurial > emacs
diff lib-src/pop.c @ 109798:fe9b13a5f44f
Merge from mainline.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Sun, 15 Aug 2010 22:50:44 +0000 |
parents | fdbd24f8d999 |
children | 417b1e4d63cd 7df2e30d72ec |
line wrap: on
line diff
--- a/lib-src/pop.c Wed Aug 11 03:20:07 2010 +0000 +++ b/lib-src/pop.c Sun Aug 15 22:50:44 2010 +0000 @@ -110,7 +110,7 @@ static int socket_connection (char *, int); static int pop_getline (popserver, char **); -static int sendline (popserver, char *); +static int sendline (popserver, const char *); static int fullwrite (int, char *, int); static int getok (popserver); #if 0 @@ -676,7 +676,7 @@ } int -pop_multi_first (popserver server, char *command, char **response) +pop_multi_first (popserver server, const char *command, char **response) { if (server->in_multi) { @@ -988,7 +988,7 @@ struct servent *servent; struct sockaddr_in addr; char found_port = 0; - char *service; + const char *service; int sock; char *realhost; #ifdef KERBEROS @@ -1414,7 +1414,7 @@ * Side effects: Closes the connection on error. */ static int -sendline (popserver server, char *line) +sendline (popserver server, const char *line) { #define SENDLINE_ERROR "Error writing to POP server: " int ret;