From 6e0631c2a842dd9320adc91a67b8cbe11cc4661d Mon Sep 17 00:00:00 2001 From: victor Date: Sun, 4 Sep 2005 09:50:12 +0000 Subject: explicitly call by reference git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3129 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mbbsd') 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); } } -- cgit v1.2.3