Skip to contentSkip to conversation

Misc cleaning

PATCH Applied Eric Leblond 2 participants 5 messages Jul 9, 2008 – Jul 10, 2008

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH 1/2 Suppress subversion specific dist-hook.

This patch suppress a dist-hook in Makefile.am which was related to the suppression of some subversion related files.

---
 Makefile.am |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
Makefile.am +0 -2
index 9f11dfb..46615c1 100644
@@ -20,5 +20,3 @@ $(OBJECTS): libtool
 libtool: $(LIBTOOL_DEPS)
 	$(SHELL) ./config.status --recheck
 
-dist-hook:
-	rm -rf `find $(distdir)/debian -name .svn`
Signature · 1 line
1.5.5.1
#2 lore raw

PATCH 2/2 Fix computation of allocated size for query.

This patch fixes the computation of the allocation size for the query. It was not taking into account the length of the name of the procedure.

---
 util/db.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
util/db.c +3 -2
index 3cfe057..5cf5fe1 100644
@@ -54,7 +54,7 @@ static int disabled_interp_db(struct ulogd_pluginstance *upi)
 	return 0;
 }
 
-#define SQL_INSERTTEMPL   "insert into X (Y) values (Z)"
+#define SQL_INSERTTEMPL   "SELECT P(Y)"
 #define SQL_VALSIZE	100
 
 /* create the static part of our insert statement */
@@ -80,7 +80,8 @@ static int sql_createstmt(struct ulogd_pluginstance *upi)
 		/* we need space for the key and a comma, as well as
 		 * enough space for the values */
 		size += strlen(upi->input.keys[i].name) + 1 + SQL_VALSIZE;
-	}	
+	}
+	size += srtlen(procedure);
 
 	ulogd_log(ULOGD_DEBUG, "allocating %u bytes for statement\n", size);
 
Signature · 1 line
1.5.5.1
maintainer Applied
#3 lore raw

Re: [ULOGD2 PATCH 2/2] Fix computation of allocated size for query.

Quoted 2 lines · Eric Leblond

This patch fixes the computation of the allocation size for the query. It was not taking into account the length of the name of the procedure.

Applied. Thanks.

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers
maintainer Applied
#4 lore raw

Re: [ULOGD2 PATCH 1/2] Suppress subversion specific dist-hook.

In reply to Eric Leblond
Quoted 2 lines · Eric Leblond

This patch suppress a dist-hook in Makefile.am which was related to the suppression of some subversion related files.

Applied. Thanks Eric.

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers