From c78c03298b5fd99999dcafeb1e1c377a62d03019 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 12 Oct 2007 14:11:32 +0200 Subject: Add GCC attributes. --- conf.h | 2 +- crypting.h | 6 +++--- help.h | 2 +- storage.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf.h b/conf.h index e852dbef..f4c6a397 100644 --- a/conf.h +++ b/conf.h @@ -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 diff --git a/crypting.h b/crypting.h index fbaa7dcc..e13b0433 100644 --- a/crypting.h +++ b/crypting.h @@ -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); diff --git a/help.h b/help.h index 07182e9c..32aba723 100644 --- a/help.h +++ b/help.h @@ -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 diff --git a/storage.h b/storage.h index 3c641088..d114dec4 100644 --- a/storage.h +++ b/storage.h @@ -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__ */ -- cgit v1.2.3