From c0c9d87226fcdd179335b6f7356499ce05219b09 Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 30 Jul 2004 06:54:40 +0000 Subject: use correct type: size_t/int/long/pointer git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd/passwd.c') diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index 88bfcaf7..6d25761b 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -62,7 +62,7 @@ passwd_update_money(int num) if ((pwdfd = open(fn_passwd, O_WRONLY)) < 0) exit(1); lseek(pwdfd, sizeof(userec_t) * (num - 1) + - ((int)&u.money - (int)&u), SEEK_SET); + ((char *)&u.money - (char *)&u), SEEK_SET); write(pwdfd, &money, sizeof(int)); close(pwdfd); return 0; -- cgit v1.2.3