printf("\n");
}
-void SigTableList(const char *keyword)
+int SigTableList(const char *keyword)
{
size_t size = sizeof(sigmatch_table) / sizeof(SigTableElmt);
size_t i;
printf("= %s =\n", sigmatch_table[i].name);
if (sigmatch_table[i].flags & SIGMATCH_NOT_BUILT) {
printf("Not built-in\n");
- return;
+ return TM_ECODE_FAILED;
}
SigMultilinePrint(i, "");
- return;
+ return TM_ECODE_DONE;
}
}
+ printf("Non existing keyword\n");
+ return TM_ECODE_FAILED;
}
- return;
+ return TM_ECODE_DONE;
}
void SigTableSetup(void)
DETECT_TBLSIZE,
};
-void SigTableList(const char *keyword);
+int SigTableList(const char *keyword);
void SigTableSetup(void);
void SigTableRegisterTests(void);
SpmTableSetup();
AppLayerSetup();
SigTableSetup(); /* load the rule keywords */
- SigTableList(keyword_info);
- return TM_ECODE_DONE;
+ return SigTableList(keyword_info);
}
int ListAppLayerProtocols(const char *conf_filename)