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>
return -1;
} else {
dbi_result_free( result );
- return 0;
}
}
+ return 0;
}
/*@}*/