diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-10-12 14:11:32 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2007-10-12 14:11:32 +0200 |
commit | c78c03298b5fd99999dcafeb1e1c377a62d03019 (patch) | |
tree | db57e1562513006c17a3d03a7cdf8ffd71fbb611 | |
parent | d444c09e6c7ac6fc3c1686af0e63c09805d8cd00 (diff) |
Add GCC attributes.
-rw-r--r-- | conf.h | 2 | ||||
-rw-r--r-- | crypting.h | 6 | ||||
-rw-r--r-- | help.h | 2 | ||||
-rw-r--r-- | storage.h | 2 |
4 files changed, 6 insertions, 6 deletions
@@ -50,7 +50,7 @@ typedef struct conf int ping_timeout; } conf_t; -conf_t *conf_load( int argc, char *argv[] ); +G_GNUC_MALLOC conf_t *conf_load( int argc, char *argv[] ); void conf_loaddefaults( irc_t *irc ); #endif @@ -24,6 +24,6 @@ */ int checkpass (const char *password, const char *md5sum); -char *hashpass (const char *password); -char *obfucrypt (char *line, const char *password); -char *deobfucrypt (char *line, const char *password); +G_GNUC_MALLOC char *hashpass (const char *password); +G_GNUC_MALLOC char *obfucrypt (char *line, const char *password); +G_GNUC_MALLOC char *deobfucrypt (char *line, const char *password); @@ -42,7 +42,7 @@ typedef struct help struct help *next; } help_t; -help_t *help_init( help_t **help, const char *helpfile ); +G_GNUC_MALLOC help_t *help_init( help_t **help, const char *helpfile ); char *help_get( help_t **help, char *string ); #endif @@ -61,6 +61,6 @@ storage_status_t storage_remove (const char *nick, const char *password); storage_status_t storage_rename (const char *onick, const char *nnick, const char *password); void register_storage_backend(storage_t *); -GList *storage_init(const char *primary, char **migrate); +G_GNUC_MALLOC GList *storage_init(const char *primary, char **migrate); #endif /* __STORAGE_H__ */ |