Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/otr.c @ 1346:e36b21e11760
Remove useless casts
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 09 Nov 2007 20:09:47 +0100 |
parents | 8a05feb23c5a |
children | 07816313073b |
comparison
equal
deleted
inserted
replaced
1345:8e4e741787be | 1346:e36b21e11760 |
---|---|
159 keyfile = NULL; | 159 keyfile = NULL; |
160 } | 160 } |
161 | 161 |
162 static char * otr_get_dir(void) | 162 static char * otr_get_dir(void) |
163 { | 163 { |
164 char * configured_dir = (char *)settings_opt_get("otr_dir"); | 164 const char *configured_dir = settings_opt_get("otr_dir"); |
165 | 165 |
166 if (configured_dir && *configured_dir) { | 166 if (configured_dir && *configured_dir) { |
167 char *xp_conf_dir; | 167 char *xp_conf_dir; |
168 int l; | 168 int l; |
169 xp_conf_dir = expand_filename(configured_dir); | 169 xp_conf_dir = expand_filename(configured_dir); |
595 * notifications may be sent to the user, which could result in "not | 595 * notifications may be sent to the user, which could result in "not |
596 * logged in" errors if you're wrong. */ | 596 * logged in" errors if you're wrong. */ |
597 static int cb_is_logged_in(void *opdata, const char *accountname, | 597 static int cb_is_logged_in(void *opdata, const char *accountname, |
598 const char *protocol, const char *recipient) | 598 const char *protocol, const char *recipient) |
599 { | 599 { |
600 int ret = (roster_getstatus((char *)recipient, NULL) != offline); | 600 int ret = (roster_getstatus(recipient, NULL) != offline); |
601 return ret; | 601 return ret; |
602 } | 602 } |
603 | 603 |
604 /* Send the given IM to the given recipient from the given | 604 /* Send the given IM to the given recipient from the given |
605 * accountname/protocol. */ | 605 * accountname/protocol. */ |