summaryrefslogtreecommitdiff
path: root/src/tool/adduser.c
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-03-16 00:38:02 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-03-16 09:02:18 -0700
commite49bce26d3de1a5c2afbe018a869ff8790294fc5 (patch)
treeb01ec81aa67181812303afd4e51bc759bba2a384 /src/tool/adduser.c
parent3f0ce47e23fa226b30a4322660b8aab3e74d5240 (diff)
downloadtmwa-e49bce26d3de1a5c2afbe018a869ff8790294fc5.tar.gz
tmwa-e49bce26d3de1a5c2afbe018a869ff8790294fc5.tar.bz2
tmwa-e49bce26d3de1a5c2afbe018a869ff8790294fc5.tar.xz
tmwa-e49bce26d3de1a5c2afbe018a869ff8790294fc5.zip
Use makefiles correctly and expand include dirs
Diffstat (limited to 'src/tool/adduser.c')
-rw-r--r--src/tool/adduser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tool/adduser.c b/src/tool/adduser.c
index 6ebbdf1..1954b66 100644
--- a/src/tool/adduser.c
+++ b/src/tool/adduser.c
@@ -41,7 +41,7 @@ int main (int argc, char *argv[])
// Check to see if account.txt exists.
printf ("Checking if '%s' file exists...\n", account_txt);
- FILE *FPaccin = fopen_ (account_txt, "r");
+ FILE *FPaccin = fopen (account_txt, "r");
if (FPaccin == NULL)
{
printf ("'%s' file not found!\n", account_txt);
@@ -72,7 +72,7 @@ int main (int argc, char *argv[])
}
}
}
- close (FPaccin);
+ fclose (FPaccin);
printf ("File exists.\n");
printf ("Don't create an account if the login-server is online!!!\n");
@@ -105,11 +105,11 @@ int main (int argc, char *argv[])
scanf ("%s", &sex);
}
- FILE *FPaccout = fopen_ (account_txt, "r+");
+ FILE *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);
+ fclose (FPaccout);
printf ("Account added.\n");
}