X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/740819ef7b3b96451e16b2fa3891d46cfc73ec64..65854cf91aacc104c0bda62ba4646f2057cd0bb4:/lib/permstring.c diff --git a/lib/permstring.c b/lib/permstring.c index 4275dfea..3834b7a1 100644 --- a/lib/permstring.c +++ b/lib/permstring.c @@ -18,7 +18,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include +#include "rsync.h" /** * Produce a string representation of Unix mode bits like that used by @@ -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; @@ -37,6 +36,21 @@ void permstring(char *perms, for (i=0;i<9;i++) { if (mode & (1<