[Devel] acc_mod.c does not compile when sql accounting is disabled

Juha Heinanen jh at tutpro.com
Sat Sep 30 17:00:02 CEST 2006


acc_mod.c does not compile when sql accounting is disabled:

acc_mod.c: In function `acc_fixup':
acc_mod.c:288: error: `db_url' undeclared (first use in this function)

this line references variable db_url, which is only defined if SQL_ACC
is defined:

		/* only for db acc - the table name */
		if (db_url==0) {
			pkg_free(p);
			*param = 0;
		}

i guess the above code piece of code needs to be SQL_ACC ifdef'ed.

-- juha



More information about the Devel mailing list