libsemanage/tests: use strict prototypes
PATCH 1/1 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() {
^
voidSigned-off-by Christian Göttsche <[email protected]>
--- libsemanage/tests/utilities.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
libsemanage/tests/utilities.c +2 -2
@@ -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 ;
Signature · 1 line
2.40.1
Quoted 11 lines · Christian Göttsche
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() { ^ voidSigned-off-by Christian Göttsche <[email protected]>
Acked-by James Carter <[email protected]>
Quoted 29 lines
--- libsemanage/tests/utilities.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)libsemanage/tests/utilities.c +2
-3@@ -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 ; --2.40.1
Quoted 13 lines · James Carter
Quoted 10 lines · Christian Göttsche
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
Quoted 4 lines
Quoted 1 line
Signed-off-by Christian Göttsche <[email protected]>Acked-by James Carter <[email protected]>
Merged.
Thanks,
Jim
Quoted 29 lines
Quoted 29 lines
--- libsemanage/tests/utilities.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)libsemanage/tests/utilities.c +2
-3@@ -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 ; --2.40.1