summaryrefslogtreecommitdiff
path: root/src/map/atcommand.h
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-09-17 14:01:54 +0200
committerHaruna <haru@dotalux.com>2015-09-17 14:01:54 +0200
commitc366543d6daa724fd2f9ebc1a258b103c7906828 (patch)
tree0b784088ea002299a51511e652007f3c81369a91 /src/map/atcommand.h
parent41ba7b50888610d43dcf3bcccb77ee3debe13532 (diff)
parent22d7f4fe24294b2fd59c1db6ef3d552aed86f670 (diff)
downloadhercules-c366543d6daa724fd2f9ebc1a258b103c7906828.tar.gz
hercules-c366543d6daa724fd2f9ebc1a258b103c7906828.tar.bz2
hercules-c366543d6daa724fd2f9ebc1a258b103c7906828.tar.xz
hercules-c366543d6daa724fd2f9ebc1a258b103c7906828.zip
Merge pull request #715 from 4144/mapchecks
Add missing checks to some files in map server
Diffstat (limited to 'src/map/atcommand.h')
-rw-r--r--src/map/atcommand.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/atcommand.h b/src/map/atcommand.h
index ccc7d3725..6c8dbf9ef 100644
--- a/src/map/atcommand.h
+++ b/src/map/atcommand.h
@@ -114,6 +114,8 @@ struct atcommand_interface {
void (*get_jail_time) (int jailtime, int* year, int* month, int* day, int* hour, int* minute);
int (*cleanfloor_sub) (struct block_list *bl, va_list ap);
int (*mutearea_sub) (struct block_list *bl,va_list ap);
+ void (*getring) (struct map_session_data* sd);
+ void (*channel_help) (int fd, const char *command, bool can_create);
/* */
void (*commands_sub) (struct map_session_data* sd, const int fd, AtCommandType type);
void (*cmd_db_clear) (void);
@@ -134,6 +136,7 @@ void atcommand_defaults(void);
HPShared struct atcommand_interface *atcommand;
/* stay here */
-#define ACMD(x) static bool atcommand_ ## x (const int fd, struct map_session_data* sd, const char* command, const char* message, struct AtCommandInfo *info)
+#define ACMD(x) static bool atcommand_ ## x (const int fd, struct map_session_data* sd, const char* command, const char* message, struct AtCommandInfo *info) __attribute__((nonnull (2, 3, 4, 5))); \
+ static bool atcommand_ ## x (const int fd, struct map_session_data* sd, const char* command, const char* message, struct AtCommandInfo *info)
#endif /* MAP_ATCOMMAND_H */