mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Minor message corrections.
This commit is contained in:
parent
66da90bdbe
commit
01376cd0a9
1 changed files with 4 additions and 4 deletions
8
main.c
8
main.c
|
@ -15,7 +15,7 @@ int usage(void)
|
|||
printf("\n");
|
||||
printf("Commands:\n");
|
||||
printf("\n");
|
||||
printf("init [{basedir}] Initializes the database\n");
|
||||
printf("init [{basedir}] Initializes the data storage\n");
|
||||
printf("upgrade {basedir} Upgrade to a new version\n");
|
||||
printf("adduser {basedir} [{uid}] Adds a new user\n");
|
||||
printf("httpd {basedir} Starts the HTTPD daemon\n");
|
||||
|
@ -59,7 +59,7 @@ int main(int argc, char *argv[])
|
|||
return usage();
|
||||
|
||||
if (strcmp(cmd, "init") == 0) {
|
||||
/* initialize the database */
|
||||
/* initialize the data storage */
|
||||
/* ... */
|
||||
basedir = GET_ARGV();
|
||||
|
||||
|
@ -69,7 +69,7 @@ int main(int argc, char *argv[])
|
|||
if (strcmp(cmd, "upgrade") == 0) {
|
||||
int ret;
|
||||
|
||||
/* database upgrade */
|
||||
/* upgrade */
|
||||
if ((basedir = GET_ARGV()) == NULL)
|
||||
return usage();
|
||||
|
||||
|
@ -92,7 +92,7 @@ int main(int argc, char *argv[])
|
|||
return usage();
|
||||
|
||||
if (!srv_open(basedir, 0)) {
|
||||
srv_log(xs_fmt("error opening database at %s", basedir));
|
||||
srv_log(xs_fmt("error opening data storage at %s", basedir));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue