ports/databases/recutils/files/patch-utils_mdb2rec.c
Christopher Micallef 6f4e0f0f2e databases/recutils: update to 1.9
- Removed non-existent elisp files from pkg-plist.

Changelog: https://fossies.org/linux/recutils/ChangeLog

PR:		271386
Approved by:	zeus@gnu.org.ua (maintainer timeout, two weeks)
2023-05-30 01:25:15 +02:00

28 lines
729 B
C

--- utils/mdb2rec.c.orig 2022-04-16 15:56:37 UTC
+++ utils/mdb2rec.c
@@ -26,7 +26,7 @@
#include <gettext.h>
#define _(str) gettext (str)
-#include <glib.h>
+#define HAVE_GLIB
#include <mdbtools.h>
#include <rec.h>
@@ -427,14 +427,12 @@ process_mdb (void)
if (!db)
recutl_out_of_memory ();
- /* Initialize libmdb and open the input file. */
- mdb_init();
- mdb_set_date_fmt ("%Y-%m-%dT%H:%M:%S%z"); /* ISO 8601 */
-
mdb = mdb_open (mdb2rec_mdb_file, MDB_NOFLAGS);
if (!mdb)
recutl_fatal (_("could not open file %s\n"),
mdb2rec_mdb_file);
+
+ mdb_set_date_fmt (mdb, "%Y-%m-%dT%H:%M:%S%z"); /* ISO 8601 */
/* Read the catalog. */
if (!mdb_read_catalog (mdb, MDB_TABLE))