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 /src | |
parent | b552f5f5b2d35b7a1b331c4a890f7f754193a92c (diff) |
- Constification
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1857 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-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 |
4 files changed, 5 insertions, 5 deletions
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]; |