forked from pool/libservicelog
- update to 1.1.11 - new build requires librtas-devel pkg-config - reworked patches - Drop libservicelog.warnings.patch, libservicelog.sqlite-include.patch libservicelog-sqlite_fixes.patch - Fix package description typo - ppc,ppc64 exclusive package as it is requires librtas OBS-URL: https://build.opensuse.org/request/show/90023 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libservicelog?expand=0&rev=10
21 lines
623 B
Diff
21 lines
623 B
Diff
--- src/event.c.orig 2011-11-02 13:02:09.000000000 +0100
|
|
+++ src/event.c 2011-11-02 13:01:05.000000000 +0100
|
|
@@ -101,7 +101,7 @@
|
|
char query[80];
|
|
sqlite3_stmt *stmt;
|
|
|
|
- snprintf(query, 80, "UPDATE %s SET %s = ? WHERE id = %lld",
|
|
+ snprintf(query, 80, "UPDATE %s SET %s = ? WHERE id = %llu",
|
|
table, column, row);
|
|
|
|
do {
|
|
@@ -588,7 +588,7 @@
|
|
retrieve_fcn = addl_data_fcns[e->type].retrieve;
|
|
|
|
snprintf(buf, 512, "SELECT * FROM %s WHERE "
|
|
- "event_id = %lld", table, e->id);
|
|
+ "event_id = %llu", table, e->id);
|
|
|
|
rc = sqlite3_exec(slog->db, buf, retrieve_fcn, e, &err);
|
|
if (rc != SQLITE_OK) {
|