Changeset c3ffa45 for protocols


Ignore:
Timestamp:
2005-12-06T21:55:09Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
1eddf6b
Parents:
d636233
Message:

Add some const

Location:
protocols
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/proxy.c

    rd636233 rc3ffa45  
    5050#define GAIM_ERR_COND   (G_IO_HUP | G_IO_ERR | G_IO_NVAL)
    5151
    52 /*FIXME*               
    53         #ifndef _WIN32
    54                 if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) {
    55                         closesocket(fd);
    56                         g_free(phb);
    57                         return -1;
    58                 }
    59                 fcntl(fd, F_SETFL, 0);
    60 #endif*/
    61 
    6252char proxyhost[128] = "";
    6353int proxyport = 0;
     
    8373
    8474
    85 static struct sockaddr_in *gaim_gethostbyname(char *host, int port)
     75static struct sockaddr_in *gaim_gethostbyname(const char *host, int port)
    8676{
    8777        static struct sockaddr_in sin;
     
    154144}
    155145
    156 static int proxy_connect_none(char *host, unsigned short port, struct PHB *phb)
     146static int proxy_connect_none(const char *host, unsigned short port, struct PHB *phb)
    157147{
    158148        struct sockaddr_in *sin;
     
    281271}
    282272
    283 static int proxy_connect_http(char *host, unsigned short port, struct PHB *phb)
     273static int proxy_connect_http(const char *host, unsigned short port, struct PHB *phb)
    284274{
    285275        phb->host = g_strdup(host);
     
    365355}
    366356
    367 static int proxy_connect_socks4(char *host, unsigned short port, struct PHB *phb)
     357static int proxy_connect_socks4(const char *host, unsigned short port, struct PHB *phb)
    368358{
    369359        phb->host = g_strdup(host);
     
    547537}
    548538
    549 static int proxy_connect_socks5(char *host, unsigned short port, struct PHB *phb)
     539static int proxy_connect_socks5(const char *host, unsigned short port, struct PHB *phb)
    550540{
    551541        phb->host = g_strdup(host);
     
    588578}
    589579
    590 int proxy_connect(char *host, int port, GaimInputFunction func, gpointer data)
     580int proxy_connect(const char *host, int port, GaimInputFunction func, gpointer data)
    591581{
    592582        struct PHB *phb;
  • protocols/proxy.h

    rd636233 rc3ffa45  
    5656G_MODULE_EXPORT void gaim_input_remove(gint);
    5757
    58 G_MODULE_EXPORT int proxy_connect(char *host, int port, GaimInputFunction func, gpointer data);
     58G_MODULE_EXPORT int proxy_connect(const char *host, int port, GaimInputFunction func, gpointer data);
    5959
    6060#endif /* _PROXY_H_ */
Note: See TracChangeset for help on using the changeset viewer.