summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 5a100d9..19be78c 100644
--- a/main.c
+++ b/main.c
@@ -15,7 +15,7 @@ int usage(void)
15 printf("\n"); 15 printf("\n");
16 printf("Commands:\n"); 16 printf("Commands:\n");
17 printf("\n"); 17 printf("\n");
18 printf("init [{basedir}] Initializes the database\n"); 18 printf("init [{basedir}] Initializes the data storage\n");
19 printf("upgrade {basedir} Upgrade to a new version\n"); 19 printf("upgrade {basedir} Upgrade to a new version\n");
20 printf("adduser {basedir} [{uid}] Adds a new user\n"); 20 printf("adduser {basedir} [{uid}] Adds a new user\n");
21 printf("httpd {basedir} Starts the HTTPD daemon\n"); 21 printf("httpd {basedir} Starts the HTTPD daemon\n");
@@ -59,7 +59,7 @@ int main(int argc, char *argv[])
59 return usage(); 59 return usage();
60 60
61 if (strcmp(cmd, "init") == 0) { 61 if (strcmp(cmd, "init") == 0) {
62 /* initialize the database */ 62 /* initialize the data storage */
63 /* ... */ 63 /* ... */
64 basedir = GET_ARGV(); 64 basedir = GET_ARGV();
65 65
@@ -69,7 +69,7 @@ int main(int argc, char *argv[])
69 if (strcmp(cmd, "upgrade") == 0) { 69 if (strcmp(cmd, "upgrade") == 0) {
70 int ret; 70 int ret;
71 71
72 /* database upgrade */ 72 /* upgrade */
73 if ((basedir = GET_ARGV()) == NULL) 73 if ((basedir = GET_ARGV()) == NULL)
74 return usage(); 74 return usage();
75 75
@@ -92,7 +92,7 @@ int main(int argc, char *argv[])
92 return usage(); 92 return usage();
93 93
94 if (!srv_open(basedir, 0)) { 94 if (!srv_open(basedir, 0)) {
95 srv_log(xs_fmt("error opening database at %s", basedir)); 95 srv_log(xs_fmt("error opening data storage at %s", basedir));
96 return 1; 96 return 1;
97 } 97 }
98 98