diff mbox series

[34/47] libsemanage: drop macros used once

Message ID 20241111141706.38039-34-cgoettsche@seltendoof.de (mailing list archive)
State New
Delegated to: Petr Lautrbach
Headers show
Series [01/47] libsemanage: white space cleanup | expand

Commit Message

Christian Göttsche Nov. 11, 2024, 2:16 p.m. UTC
From: Christian Göttsche <cgzones@googlemail.com>

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 libsemanage/src/utilities.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/libsemanage/src/utilities.c b/libsemanage/src/utilities.c
index 38ac72e4..9df7b9c1 100644
--- a/libsemanage/src/utilities.c
+++ b/libsemanage/src/utilities.c
@@ -28,9 +28,6 @@ 
 #include <unistd.h>
 #include <assert.h>
 
-#define TRUE 1
-#define FALSE 0
-
 char *semanage_findval(const char *file, const char *var, const char *delim)
 {
 	FILE *fd;
@@ -61,10 +58,10 @@  char *semanage_findval(const char *file, const char *var, const char *delim)
 int semanage_is_prefix(const char *str, const char *prefix)
 {
 	if (!str) {
-		return FALSE;
+		return 0;
 	}
 	if (!prefix) {
-		return TRUE;
+		return 1;
 	}
 
 	return strncmp(str, prefix, strlen(prefix)) == 0;