]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Remove C compiler warning for writeAuditInfo
authorDan Scott <dscott@laurentian.ca>
Thu, 30 Aug 2012 04:21:01 +0000 (00:21 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 11 Oct 2012 15:26:12 +0000 (11:26 -0400)
commite5fe5acb22a7fe3d7e88ec0a8cf5a202410ef056
tree46407625397bfbe47e4739f485ca74af5a441f8c
parentc533d8d9ead6cdcb32aa0d6e59ed780ae3a1f11b
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>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/c-apps/oils_sql.c