diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-29 22:00:19 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-29 22:00:19 +0800 |
commit | 137fddca112a5ad5defc0f0270de7b1e25311fdc (patch) | |
tree | 7b89d60583db9ed39c2b349d04091d4298db9201 /mbbsd | |
parent | 769b139c4ca7e858cb30b8240ed074fbe90469a9 (diff) | |
download | pttbbs-137fddca112a5ad5defc0f0270de7b1e25311fdc.tar pttbbs-137fddca112a5ad5defc0f0270de7b1e25311fdc.tar.gz pttbbs-137fddca112a5ad5defc0f0270de7b1e25311fdc.tar.bz2 pttbbs-137fddca112a5ad5defc0f0270de7b1e25311fdc.tar.lz pttbbs-137fddca112a5ad5defc0f0270de7b1e25311fdc.tar.xz pttbbs-137fddca112a5ad5defc0f0270de7b1e25311fdc.tar.zst pttbbs-137fddca112a5ad5defc0f0270de7b1e25311fdc.zip |
* [code refine] add const modifier
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4789 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/emaildb.c | 4 | ||||
-rw-r--r-- | mbbsd/user.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/emaildb.c b/mbbsd/emaildb.c index d8718b1b..931aee66 100644 --- a/mbbsd/emaildb.c +++ b/mbbsd/emaildb.c @@ -5,7 +5,7 @@ #ifdef USE_EMAILDB -int emaildb_check_email(char * email, int email_len) +int emaildb_check_email(const char * email, int email_len) { int count = -1; int fd = -1; @@ -38,7 +38,7 @@ int emaildb_check_email(char * email, int email_len) return count; } -int emaildb_update_email(char * userid, int userid_len, char * email, int email_len) +int emaildb_update_email(const char * userid, int userid_len, const char * email, int email_len) { int result = -1; int fd = -1; diff --git a/mbbsd/user.c b/mbbsd/user.c index 822b09a7..04d1bac8 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -269,7 +269,7 @@ mail_violatelaw(const char *crime, const char *police, const char *reason, const } void -kick_all(char *user) +kick_all(const char *user) { userinfo_t *ui; int num = searchuser(user, NULL), i=1; |