aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-12-05 14:22:19 -0500
committerFranklin Wei <git@fwei.tk>2015-12-05 14:22:19 -0500
commit8bc78787a99efdf4c64032d7fe55905ff995cd98 (patch)
tree4945e4839fb768c12188f9774f9ad16431fd469f /src
parent3eded93f206213c4ae7cb451fcc575d77de5a5f8 (diff)
downloadnetcosm-8bc78787a99efdf4c64032d7fe55905ff995cd98.zip
netcosm-8bc78787a99efdf4c64032d7fe55905ff995cd98.tar.gz
netcosm-8bc78787a99efdf4c64032d7fe55905ff995cd98.tar.bz2
netcosm-8bc78787a99efdf4c64032d7fe55905ff995cd98.tar.xz
production flags
Diffstat (limited to 'src')
-rw-r--r--src/auth.c1
-rw-r--r--src/netcosm.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/auth.c b/src/auth.c
index e89c0d0..b54d0a4 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -250,6 +250,7 @@ struct authinfo_t auth_check(const char *name2, const char *pass2)
struct authinfo_t ret;
ret.success = false;
ret.authlevel = PRIV_NONE;
+ ret.user = NULL;
while(1)
{
diff --git a/src/netcosm.h b/src/netcosm.h
index c8566da..be6d1a2 100644
--- a/src/netcosm.h
+++ b/src/netcosm.h
@@ -31,7 +31,7 @@
struct authinfo_t {
bool success;
const char *user;
- int authlevel; /* 0 = highest */
+ int authlevel;
};
void client_main(int fd, struct sockaddr_in *addr, int);