1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/print/panda/files/patch-database.c
Mathieu Arnold 7ae7b018cc With the power of USES=dos2unix, get rid of most patches and files
with CRLF.

While there, run make makepatch, rename patches to use the new scheme,
and various fixes.

With hat:	portmgr
Sponsored by:	Absolight
2016-06-20 16:23:28 +00:00

30 lines
791 B
C

--- database.c.orig 2016-06-20 16:04:03 UTC
+++ database.c
@@ -160,6 +160,12 @@ panda_dbwrite (panda_pdf * document, cha
panda_windbwrite (document, key, value);
#else
+#ifdef USE_EDB
+ e_db_data_set((E_DB_File *)document->db, key, value, strlen(value)+1);
+#else
+ DBT db_key, db_data;
+ int ec;
+
#if defined DEBUG
printf ("Storing (%s, %s) in 0x%08x\n", key, value, document->db);
#endif
@@ -169,13 +175,6 @@ panda_dbwrite (panda_pdf * document, cha
if (value == NULL)
panda_error (panda_true, "Cannot store null value\n");
-#ifdef USE_EDB
-
- e_db_data_set((E_DB_File *)document->db, key, value, strlen(value)+1);
-#else
- DBT db_key, db_data;
- int ec;
-
memset(&db_key, 0, sizeof(db_key));
memset(&db_data, 0, sizeof(db_data));
db_key.data = key;