Commit: 10505f867460a6ed9c482de61dc23f62e943468a
Parent: 98e40f23a5abafd1d1473148bec50afebcb5910c
Author: opask
Date: Sat, 22 Sep 2018 22:29:04 -0600
file.c: remove call to non-standard strmode()
Diffstat:
1 file changed, 0 insertions(+), 15 deletions(-)
diff --git a/file.c b/file.c
@@ -5,18 +5,6 @@
#include "links.h"
-#if defined(HAVE_STRMODE) || defined(HAVE_LIBBSD)
-
-static void stat_mode(unsigned char **p, int *l, struct stat *stp)
-{
- unsigned char bp[12] = "?--------- ";
- if (stp)
- strmode(stp->st_mode, cast_char bp);
- add_to_str(p, l, bp);
-}
-
-#else
-
static void setrwx(unsigned m, unsigned char *p)
{
if (m & S_IRUSR) p[0] = 'r';
@@ -87,9 +75,6 @@ static void stat_mode(unsigned char **p, int *l, struct stat *stp)
add_chr_to_str(p, l, ' ');
}
-#endif
-
-
static void stat_links(unsigned char **p, int *l, struct stat *stp)
{
unsigned char lnk[64];