Remove C compiler warning for writeAuditInfo user/dbs/squelch_c_warnings
authorDan Scott <dscott@laurentian.ca>
Thu, 30 Aug 2012 04:21:01 +0000 (00:21 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 30 Aug 2012 04:21:01 +0000 (00:21 -0400)
commit1126ba733a2caec66202f9edcca4ddf86c6ab16f
treea7b9e8537d4378c0468b1bbb6020b40125920635
parent10e0db8c79749c6e036692cf79866782ca96f939
Remove C compiler warning for writeAuditInfo

The C compiler was throwing the following warning:

oils_sql.c: In function 'writeAuditInfo':
oils_sql.c:7244:1: warning: control reaches end of non-void function
[-Wreturn-type]

By shifting the "return 0" to the end of the function, outside of the if
statements, we can ensure that we always return an int value.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/c-apps/oils_sql.c