diff options
Diffstat (limited to 'src/anubisadm.c')
-rw-r--r-- | src/anubisadm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/anubisadm.c b/src/anubisadm.c index 1eff9cb..4d730d9 100644 --- a/src/anubisadm.c +++ b/src/anubisadm.c @@ -1,6 +1,6 @@ /* This file is part of GNU Anubis - Copyright (C) 2004-2014 The Anubis Team. + Copyright (C) 2004-2024 The Anubis Team. GNU Anubis is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -36,7 +36,7 @@ error (const char *fmt, ...) } void -xalloc_die () +xnomem (void) { error ("%s", _("Not enough memory")); exit (1); @@ -89,7 +89,7 @@ op_create (int argc, char **argv) return 1; memset (&rec, 0, sizeof (rec)); - while (getline (&buf, &n, stdin) > 0 && n > 0) + while (xgetline (&buf, &n, stdin) > 0 && n > 0) { char *p; int len = strlen (buf); @@ -242,13 +242,13 @@ op_add_or_modify (char *database, int code, char *errmsg) return 1; } if (!password) - password = getpass (_("Password:")); - if (!password) + { + if (anubis_getpass (_("Password: "), &password)) { error (_("password not specified")); return 1; } - + } rc = anubis_db_open (database, anubis_db_rdwr, &db, &err); if (rc != ANUBIS_DB_SUCCESS) @@ -353,7 +353,7 @@ main (int argc, char **argv) dbtext_init (); # ifdef HAVE_LIBGDBM - gdbm_db_init (); + db_gdbm_init (); # endif # ifdef WITH_MYSQL mysql_db_init (); |