mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +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("\n");
|
||||||
printf("Commands:\n");
|
printf("Commands:\n");
|
||||||
printf("\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("upgrade {basedir} Upgrade to a new version\n");
|
||||||
printf("adduser {basedir} [{uid}] Adds a new user\n");
|
printf("adduser {basedir} [{uid}] Adds a new user\n");
|
||||||
printf("httpd {basedir} Starts the HTTPD daemon\n");
|
printf("httpd {basedir} Starts the HTTPD daemon\n");
|
||||||
|
@ -59,7 +59,7 @@ int main(int argc, char *argv[])
|
||||||
return usage();
|
return usage();
|
||||||
|
|
||||||
if (strcmp(cmd, "init") == 0) {
|
if (strcmp(cmd, "init") == 0) {
|
||||||
/* initialize the database */
|
/* initialize the data storage */
|
||||||
/* ... */
|
/* ... */
|
||||||
basedir = GET_ARGV();
|
basedir = GET_ARGV();
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ int main(int argc, char *argv[])
|
||||||
if (strcmp(cmd, "upgrade") == 0) {
|
if (strcmp(cmd, "upgrade") == 0) {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* database upgrade */
|
/* upgrade */
|
||||||
if ((basedir = GET_ARGV()) == NULL)
|
if ((basedir = GET_ARGV()) == NULL)
|
||||||
return usage();
|
return usage();
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ int main(int argc, char *argv[])
|
||||||
return usage();
|
return usage();
|
||||||
|
|
||||||
if (!srv_open(basedir, 0)) {
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue