diff options
| author | 2023-01-13 15:15:14 +0100 | |
|---|---|---|
| committer | 2023-01-13 15:15:14 +0100 | |
| commit | 01376cd0a9f4973be67eb70eaa24accbffa3819a (patch) | |
| tree | bf212629c53bd8d52dd64e5b5be5a1508a4e20ca | |
| parent | Updated documentation. (diff) | |
| download | snac2-01376cd0a9f4973be67eb70eaa24accbffa3819a.tar.gz snac2-01376cd0a9f4973be67eb70eaa24accbffa3819a.tar.xz snac2-01376cd0a9f4973be67eb70eaa24accbffa3819a.zip | |
Minor message corrections.
| -rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -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 | ||