summaryrefslogtreecommitdiff
path: root/src/tool/adduser.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-10 17:57:57 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-10 17:57:57 +0000
commitef96dc4ab24074431b4d7463cfc0a6077fcd311e (patch)
treeebe0b21d5fec3a8f230403d4102e0fef8fcaa0bf /src/tool/adduser.c
parent1369e505925eef0f8e5888e12448e3daabb29525 (diff)
downloadhercules-ef96dc4ab24074431b4d7463cfc0a6077fcd311e.tar.gz
hercules-ef96dc4ab24074431b4d7463cfc0a6077fcd311e.tar.bz2
hercules-ef96dc4ab24074431b4d7463cfc0a6077fcd311e.tar.xz
hercules-ef96dc4ab24074431b4d7463cfc0a6077fcd311e.zip
- Fixed compile errors in adduser.c and ladmin.c under win platforms.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6553 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/tool/adduser.c')
-rw-r--r--src/tool/adduser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tool/adduser.c b/src/tool/adduser.c
index 2c8e1524b..800154997 100644
--- a/src/tool/adduser.c
+++ b/src/tool/adduser.c
@@ -37,10 +37,11 @@ int main(int argc, char *argv[]) {
int next_id, id;
char line[1024];
+ FILE *FPaccin,*FPaccout;
// Check to see if account.txt exists.
printf("Checking if '%s' file exists...\n", account_txt);
- FILE *FPaccin = fopen(account_txt, "r");
+ FPaccin = fopen(account_txt, "r");
if (FPaccin == NULL) {
printf("'%s' file not found!\n", account_txt);
printf("Run the setup wizard please.\n");
@@ -90,7 +91,7 @@ int main(int argc, char *argv[]) {
scanf("%s", &sex);
}
- FILE *FPaccout = fopen(account_txt, "r+");
+ FPaccout = fopen(account_txt, "r+");
fseek(FPaccout, 0, SEEK_END);
fprintf(FPaccout, "%i %s %s - %s -\r\n", next_id, username, password, sex);
close(FPaccout);