Mercurial > pidgin
comparison src/stun.c @ 11229:67f874fadb57
[gaim-migrate @ 13369]
Minor warning fixes
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 11 Aug 2005 04:30:23 +0000 |
parents | 46facec74fc1 |
children | dd1a5969b2e5 |
comparison
equal
deleted
inserted
replaced
11228:ea2ef55b3a05 | 11229:67f874fadb57 |
---|---|
146 cb(&nattype); | 146 cb(&nattype); |
147 return &nattype; | 147 return &nattype; |
148 } | 148 } |
149 incb = gaim_input_add(fd, GAIM_INPUT_READ, reply_cb, NULL); | 149 incb = gaim_input_add(fd, GAIM_INPUT_READ, reply_cb, NULL); |
150 | 150 |
151 char *ip = gaim_prefs_get_string("/core/network/stun_ip"); | 151 const char *ip = gaim_prefs_get_string("/core/network/stun_ip"); |
152 int port = gaim_prefs_get_int("/core/network/stun_port"); | 152 int port = gaim_prefs_get_int("/core/network/stun_port"); |
153 | 153 |
154 if(port == 0 || ip == NULL || ip[0] == '\0') return NULL; | 154 if(port == 0 || ip == NULL || ip[0] == '\0') return NULL; |
155 | 155 |
156 addr.sin_family = AF_INET; | 156 addr.sin_family = AF_INET; |