diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-24 20:47:21 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-24 20:47:21 +0000 |
commit | bdb5e02835c2dd4120c0b189c2ac7c7ab88f82e1 (patch) | |
tree | 8c11f10c2734a495b8dab5c2274aa1eba5b81208 | |
parent | b552f5f5b2d35b7a1b331c4a890f7f754193a92c (diff) |
- Constification
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1857 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r-- | include/s_serv.h | 2 | ||||
-rw-r--r-- | include/s_user.h | 2 | ||||
-rw-r--r-- | include/watch.h | 2 | ||||
-rw-r--r-- | include/whowas.h | 2 | ||||
-rw-r--r-- | modules/m_ison.c | 2 | ||||
-rw-r--r-- | modules/m_whowas.c | 2 | ||||
-rw-r--r-- | src/s_serv.c | 2 | ||||
-rw-r--r-- | src/s_user.c | 4 | ||||
-rw-r--r-- | src/watch.c | 2 | ||||
-rw-r--r-- | src/whowas.c | 2 |
10 files changed, 11 insertions, 11 deletions
diff --git a/include/s_serv.h b/include/s_serv.h index e1baf82..3d9d224 100644 --- a/include/s_serv.h +++ b/include/s_serv.h @@ -84,7 +84,7 @@ struct Capability extern int valid_servname(const char *); extern int check_server(const char *, struct Client *); extern int hunt_server(struct Client *, struct Client *, - const char *, int, int, char **); + const char *, const int, const int, char *[]); extern void add_capability(const char *, int, int); extern int delete_capability(const char *); extern int find_capability(const char *); diff --git a/include/s_user.h b/include/s_user.h index a0f167f..135c4ed 100644 --- a/include/s_user.h +++ b/include/s_user.h @@ -36,7 +36,7 @@ extern struct Callback *umode_cb; extern unsigned int user_modes[]; extern void assemble_umode_buffer(void); -extern void set_user_mode(struct Client *, struct Client *, int, char **); +extern void set_user_mode(struct Client *, struct Client *, const int, char *[]); extern void send_umode(struct Client *, struct Client *, unsigned int, unsigned int, char *); extern void send_umode_out(struct Client *, struct Client *, unsigned int); diff --git a/include/watch.h b/include/watch.h index 21a71dc..8a4e2d8 100644 --- a/include/watch.h +++ b/include/watch.h @@ -41,7 +41,7 @@ struct Watch extern void watch_init(void); extern void watch_add_to_hash_table(const char *, struct Client *); extern void watch_del_from_hash_table(const char *, struct Client *); -extern void watch_check_hash(struct Client *, unsigned int); +extern void watch_check_hash(struct Client *, const unsigned int); extern void watch_del_watch_list(struct Client *); extern void watch_count_memory(unsigned int *const, uint64_t *const); extern struct Watch *watch_find_hash(const char *); diff --git a/include/whowas.h b/include/whowas.h index 3f23ec5..561192c 100644 --- a/include/whowas.h +++ b/include/whowas.h @@ -55,7 +55,7 @@ extern void whowas_init(void); ** usually called before changing to a new name (nick). ** Client must be a fully registered user. */ -extern void add_history(struct Client *, int); +extern void add_history(struct Client *, const int); /* ** off_history diff --git a/modules/m_ison.c b/modules/m_ison.c index 0e67287..e8966bb 100644 --- a/modules/m_ison.c +++ b/modules/m_ison.c @@ -34,7 +34,7 @@ static void do_ison(struct Client *client_p, struct Client *source_p, - int parc, char *parv[]) + const int parc, char *parv[]) { struct Client *target_p = NULL; char *nick; diff --git a/modules/m_whowas.c b/modules/m_whowas.c index 2f6da27..0a0d542 100644 --- a/modules/m_whowas.c +++ b/modules/m_whowas.c @@ -41,7 +41,7 @@ static void whowas_do(struct Client *client_p, struct Client *source_p, - int parc, char *parv[]) + const int parc, char *parv[]) { int cur = 0; int max = -1; diff --git a/src/s_serv.c b/src/s_serv.c index 302288b..a0a47e7 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -161,7 +161,7 @@ write_links_file(void* notused) */ int hunt_server(struct Client *client_p, struct Client *source_p, const char *command, - int server, int parc, char *parv[]) + const int server, const int parc, char *parv[]) { struct Client *target_p = NULL; struct Client *target_tmp = NULL; diff --git a/src/s_user.c b/src/s_user.c index 210a926..74a0bc5 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -826,7 +826,7 @@ change_simple_umode(va_list args) */ void set_user_mode(struct Client *client_p, struct Client *source_p, - int parc, char *parv[]) + const int parc, char *parv[]) { unsigned int flag, setflags; char **p, *m, buf[IRCD_BUFSIZE]; @@ -1260,7 +1260,7 @@ valid_sid(const char *sid) void init_uid(void) { - int i; + unsigned int i; memset(new_uid, 0, sizeof(new_uid)); diff --git a/src/watch.c b/src/watch.c index 63af093..aeb3a30 100644 --- a/src/watch.c +++ b/src/watch.c @@ -82,7 +82,7 @@ watch_count_memory(unsigned int *const count, uint64_t *const memory) * \param reply numeric to send. Either RPL_LOGON or RPL_LOGOFF */ void -watch_check_hash(struct Client *client_p, unsigned int reply) +watch_check_hash(struct Client *client_p, const unsigned int reply) { struct Watch *anptr = NULL; dlink_node *ptr = NULL; diff --git a/src/whowas.c b/src/whowas.c index 7d0e087..0a19446 100644 --- a/src/whowas.c +++ b/src/whowas.c @@ -36,7 +36,7 @@ dlink_list WHOWASHASH[HASHSIZE]; void -add_history(struct Client *client_p, int online) +add_history(struct Client *client_p, const int online) { static unsigned int whowas_next = 0; struct Whowas *who = &WHOWAS[whowas_next]; |