Mercurial > pidgin.yaz
comparison src/prpl.h @ 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 | ec9b92104904 |
children | 44a8d46ee3c1 |
comparison
equal
deleted
inserted
replaced
13105:e347b2217b1b | 13106:a0a4b44239e8 |
---|---|
72 #include "roomlist.h" | 72 #include "roomlist.h" |
73 #include "status.h" | 73 #include "status.h" |
74 #include "whiteboard.h" | 74 #include "whiteboard.h" |
75 | 75 |
76 struct proto_chat_entry { | 76 struct proto_chat_entry { |
77 char *label; | 77 const char *label; |
78 char *identifier; | 78 const char *identifier; |
79 gboolean required; | 79 gboolean required; |
80 gboolean is_int; | 80 gboolean is_int; |
81 int min; | 81 int min; |
82 int max; | 82 int max; |
83 gboolean secret; | 83 gboolean secret; |