Mercurial > pidgin
diff src/protocols/zephyr/ZRetSubs.c @ 12424:7c2e2c4d45a4
[gaim-migrate @ 14731]
Add prototypes, make things static, or #if 0 out unused function as necessary to get zephyr to compile without prototype warnings. It's painfully obvious that this code was written before prototypes existed, or at least before they became standard. As we need to maintain source compatibility with an external libzephyr, I can't really start adding header files. If someone cares about this protocol, feel free to clean this up a bit. My only concern is that I caught any actual mistakes and that it compiles without spurious warnings that would distract us from problems elsewhere.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Thu, 08 Dec 2005 23:38:36 +0000 |
| parents | 64895571248f |
| children |
line wrap: on
line diff
--- a/src/protocols/zephyr/ZRetSubs.c Thu Dec 08 23:36:47 2005 +0000 +++ b/src/protocols/zephyr/ZRetSubs.c Thu Dec 08 23:38:36 2005 +0000 @@ -11,7 +11,7 @@ #include "internal.h" -static Code_t Z_RetSubs (); +static Code_t Z_RetSubs(ZNotice_t *notice, int *nsubs, Z_AuthProc auth_routine); /* Need STDC definition when possible for unsigned short argument. */ #ifdef __STDC__ @@ -41,6 +41,7 @@ return(Z_RetSubs(¬ice, nsubs, ZAUTH)); } +#if 0 Code_t ZRetrieveDefaultSubscriptions(nsubs) int *nsubs; { @@ -54,6 +55,7 @@ return(Z_RetSubs(¬ice, nsubs, ZNOAUTH)); } +#endif static Code_t Z_RetSubs(notice, nsubs, auth_routine) register ZNotice_t *notice;
