static declaration of 'find_max_fdj_log' follows non-static declaration
static int find_max_fdj_log (int *sxh_max)
{
int i_sxh = 0;
int i_rect = -1;
i_rect = wj_lock_operation_nowait("fdj_tscl_log");
if( -54 == i_rect ) {
wjupt_err_print("发动机特殊处理日志功能正在被其他用户使用!请稍候再试!");
return ERR;
}
if( ERR == i_rect ) {
return ERR;
}
EXEC SQL SELECT MAX(sxh)
INTO :i_sxh
FROM fdj_tscl_log;
if( sqlca.sqlcode != 0 ){
wjdbupt_db_op_fail("select max sxh fail ...");
return ERR;
}
*sxh_max = i_sxh;
return OK;
}
int insert_fdj_log(const char *pc_fdjh,const char *bz,const int czlx)
{
if ( ERR == find_max_fdj_log ( &i_max_sxh ) ){
return ERR;
}
}
错误信息static declaration of 'find_max_fdj_log' follows non-static declaration,怎么改