]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <stdbool.h>.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 17:33:24 +0000 (17:33 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 17:33:24 +0000 (17:33 +0000)
(strip_trailing_slashes): Now returns bool.

lib/dirname.h

index 1baceb63a8208db218cd7403c6dce0a412cf0a08..91479ad9afe50ab4322278915453db49f4af3b61 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef DIRNAME_H_
 # define DIRNAME_H_ 1
 
+# include <stdbool.h>
 # include <stddef.h>
 
 # ifndef DIRECTORY_SEPARATOR
@@ -41,6 +42,6 @@ char *dir_name (char const *path);
 size_t base_len (char const *path);
 size_t dir_len (char const *path);
 
-int strip_trailing_slashes (char *path);
+bool strip_trailing_slashes (char *path);
 
 #endif /* not DIRNAME_H_ */