libsemanage/tests: use strict prototypes

utilities.c:39:22: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    int create_test_store() {
                         ^
                          void
    utilities.c:171:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    int destroy_test_store() {
                          ^
                           void

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
Christian Göttsche 2023-08-05 11:44:18 +02:00 committed by James Carter
parent 8b0acb0535
commit 8e3a532880
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ void test_msg_handler(void *varg, semanage_handle_t *handle, const char *fmt,
{
}
int create_test_store() {
int create_test_store(void) {
FILE *fptr;
if (mkdir("test-policy", 0700) < 0)
@ -168,7 +168,7 @@ int write_test_policy_src(unsigned char *data, unsigned int data_len) {
return 0;
}
int destroy_test_store() {
int destroy_test_store(void) {
FTS *ftsp = NULL;
FTSENT *curr = NULL;
int ret = 0;