Mercurial > pidgin
comparison src/gtkft.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 | 540d13050d5a |
children | 41e40b323dc3 |
comparison
equal
deleted
inserted
replaced
13105:e347b2217b1b | 13106:a0a4b44239e8 |
---|---|
971 gaim_gtkxfer_dialog_cancel_xfer(GaimGtkXferDialog *dialog, | 971 gaim_gtkxfer_dialog_cancel_xfer(GaimGtkXferDialog *dialog, |
972 GaimXfer *xfer) | 972 GaimXfer *xfer) |
973 { | 973 { |
974 GaimGtkXferUiData *data; | 974 GaimGtkXferUiData *data; |
975 GdkPixbuf *pixbuf; | 975 GdkPixbuf *pixbuf; |
976 gchar *status; | 976 const gchar *status; |
977 | 977 |
978 g_return_if_fail(dialog != NULL); | 978 g_return_if_fail(dialog != NULL); |
979 g_return_if_fail(xfer != NULL); | 979 g_return_if_fail(xfer != NULL); |
980 | 980 |
981 data = GAIM_GTKXFER(xfer); | 981 data = GAIM_GTKXFER(xfer); |