aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-12 14:11:32 +0200
committerJelmer Vernooij <jelmer@samba.org>2007-10-12 14:11:32 +0200
commitc78c03298b5fd99999dcafeb1e1c377a62d03019 (patch)
treedb57e1562513006c17a3d03a7cdf8ffd71fbb611
parentd444c09e6c7ac6fc3c1686af0e63c09805d8cd00 (diff)
Add GCC attributes.
-rw-r--r--conf.h2
-rw-r--r--crypting.h6
-rw-r--r--help.h2
-rw-r--r--storage.h2
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__ */