summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-04 17:50:12 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-04 17:50:12 +0800
commit6e0631c2a842dd9320adc91a67b8cbe11cc4661d (patch)
tree8887532162a3779d195f88929639827a39594f34 /mbbsd
parent1519bd7f94f6096595d833b55d66b98c381dec9a (diff)
downloadpttbbs-6e0631c2a842dd9320adc91a67b8cbe11cc4661d.tar
pttbbs-6e0631c2a842dd9320adc91a67b8cbe11cc4661d.tar.gz
pttbbs-6e0631c2a842dd9320adc91a67b8cbe11cc4661d.tar.bz2
pttbbs-6e0631c2a842dd9320adc91a67b8cbe11cc4661d.tar.lz
pttbbs-6e0631c2a842dd9320adc91a67b8cbe11cc4661d.tar.xz
pttbbs-6e0631c2a842dd9320adc91a67b8cbe11cc4661d.tar.zst
pttbbs-6e0631c2a842dd9320adc91a67b8cbe11cc4661d.zip
explicitly call by reference
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3129 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 2a84d5f5..e5808400 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -509,7 +509,7 @@ _debug_testregcode()
#endif
-void email_justify(userec_t muser)
+void email_justify(const userec_t *muser)
{
char tmp[IDLEN + 1], buf[256], genbuf[256];
/*
@@ -527,11 +527,11 @@ void email_justify(userec_t muser)
strlcpy(tmp, cuser.userid, sizeof(tmp));
strlcpy(cuser.userid, str_sysop, sizeof(cuser.userid));
#ifdef HAVEMOBILE
- if (strcmp(muser.email, "m") == 0 || strcmp(muser.email, "M") == 0)
+ if (strcmp(muser->email, "m") == 0 || strcmp(muser->email, "M") == 0)
mobile_message(mobile, buf);
else
#endif
- bsmtp("etc/registermail", buf, muser.email, 0);
+ bsmtp("etc/registermail", buf, muser->email, 0);
strlcpy(cuser.userid, tmp, sizeof(cuser.userid));
move(20,0);
clrtobot();
@@ -934,7 +934,7 @@ uinfo_query(userec_t *u, int adminmode, int unum)
}
if (mail_changed) {
x.userlevel &= ~(PERM_LOGINOK | PERM_POST);
- email_justify(x);
+ email_justify(&x);
}
memcpy(u, &x, sizeof(x));
if (i == QUIT) {
@@ -1350,7 +1350,7 @@ toregister(char *email, char *genbuf, char *phone, char *career,
strncpy(cuser.justify, genbuf, REGLEN);
sethomefile(buf, cuser.userid, "justify");
}
- email_justify(cuser);
+ email_justify(&cuser);
}
}