From 65854cf91aacc104c0bda62ba4646f2057cd0bb4 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 30 Jan 2006 00:39:59 +0000 Subject: [PATCH] Changed the mode arg from an int to a mode_t. --- lib/permstring.c | 3 +-- lib/permstring.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/permstring.c b/lib/permstring.c index fc75d088..3834b7a1 100644 --- a/lib/permstring.c +++ b/lib/permstring.c @@ -26,8 +26,7 @@ * * @param buf buffer of at least 11 characters **/ -void permstring(char *perms, - int mode) +void permstring(char *perms, mode_t mode) { static const char *perm_map = "rwxrwxrwx"; int i; diff --git a/lib/permstring.h b/lib/permstring.h index d74787d8..b996f2a2 100644 --- a/lib/permstring.h +++ b/lib/permstring.h @@ -1,3 +1,3 @@ #define PERMSTRING_SIZE 11 -void permstring(char *perms, int mode); +void permstring(char *perms, mode_t mode); -- 2.34.1