summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-23 16:42:02 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-23 16:42:02 +0000
commit4fc632fe96ddc6b1efe881965eb34155c136cfcc (patch)
treeb0df0834ff27a2501a8bf09742f580cddf5decaf /include
parent7b0be4b0c2589115a59090246188c3797a798d45 (diff)
- Constification, replaced few sprintf with snprintf
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1847 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include')
-rw-r--r--include/channel.h4
-rw-r--r--include/s_misc.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/channel.h b/include/channel.h
index a922715..564533e 100644
--- a/include/channel.h
+++ b/include/channel.h
@@ -114,11 +114,11 @@ struct Ban
extern dlink_list global_channel_list;
-extern int check_channel_name(const char *, int);
+extern int check_channel_name(const char *, const int);
extern int can_send(struct Channel *, struct Client *, struct Membership *);
extern int is_banned(const struct Channel *, const struct Client *);
extern int can_join(struct Client *, struct Channel *, const char *);
-extern int has_member_flags(struct Membership *, unsigned int);
+extern int has_member_flags(const struct Membership *, const unsigned int);
extern void remove_ban(struct Ban *, dlink_list *);
extern void channel_init(void);
diff --git a/include/s_misc.h b/include/s_misc.h
index 3c18976..c44344f 100644
--- a/include/s_misc.h
+++ b/include/s_misc.h
@@ -25,10 +25,10 @@
#ifndef INCLUDED_s_misc_h
#define INCLUDED_s_misc_h
-extern char *date(time_t);
+extern const char *date(time_t);
extern const char *smalldate(time_t);
#ifdef HAVE_LIBCRYPTO
-extern char *ssl_get_cipher(const SSL *);
+extern const char *ssl_get_cipher(const SSL *);
#endif
/* Just blindly define our own MIN/MAX macro */