comparison src/log.c @ 13106:a0a4b44239e8

[gaim-migrate @ 15468] I was reading the gettext man page and it pointed out that it should be typed as const char *, but it's char * to avoid warnings in code predating ANSI C. So, for the heck of it, I changed added a cast in internal.h. As it turns out, there was a lot of code that relied on this. In the interest of type safety, I've fixed all the warnings. I feel this improved a number of function signatures (in terms of typing clarity). Flame me if you object. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 02 Feb 2006 21:34:43 +0000
parents e1e5462b7d81
children fcde3faa1f57
comparison
equal deleted inserted replaced
13105:e347b2217b1b 13106:a0a4b44239e8
132 if (log->logger->read) { 132 if (log->logger->read) {
133 char *ret = (log->logger->read)(log, flags ? flags : &mflags); 133 char *ret = (log->logger->read)(log, flags ? flags : &mflags);
134 gaim_str_strip_char(ret, '\r'); 134 gaim_str_strip_char(ret, '\r');
135 return ret; 135 return ret;
136 } 136 }
137 return (_("<b><font color=\"red\">The logger has no read function</font></b>")); 137 return g_strdup(_("<b><font color=\"red\">The logger has no read function</font></b>"));
138 } 138 }
139 139
140 int gaim_log_get_size(GaimLog *log) 140 int gaim_log_get_size(GaimLog *log)
141 { 141 {
142 g_return_val_if_fail(log && log->logger, 0); 142 g_return_val_if_fail(log && log->logger, 0);