diff --git a/bin/ls/extern.h b/bin/ls/extern.h index 45b908d9cee1..f758a234fa11 100644 --- a/bin/ls/extern.h +++ b/bin/ls/extern.h @@ -51,7 +51,7 @@ int len_octal __P((const char *, int)); int prn_octal __P((const char *)); int prn_printable __P((const char *)); #ifdef COLORLS -void parsecolors __P((char *cs)); +void parsecolors __P((const char *cs)); void colorquit __P((int)); extern char *ansi_fgcol; diff --git a/bin/ls/lomac.c b/bin/ls/lomac.c index 8dbd76c8695e..b92a08e8d81a 100644 --- a/bin/ls/lomac.c +++ b/bin/ls/lomac.c @@ -49,6 +49,7 @@ #include #include #include +#include #include "lomac.h" diff --git a/bin/ls/ls.c b/bin/ls/ls.c index b2848c24e0d4..7791d20a2969 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -585,7 +585,7 @@ display(p, list) if (cur->fts_namelen > maxlen) maxlen = cur->fts_namelen; if (f_octal || f_octal_escape) { - int t = len_octal(cur->fts_name, cur->fts_namelen); + u_long t = len_octal(cur->fts_name, cur->fts_namelen); if (t > maxlen) maxlen = t; } if (needstats) { diff --git a/bin/ls/print.c b/bin/ls/print.c index f0fb67025eeb..af1b2753b036 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -94,7 +94,7 @@ typedef enum Colors { C_NUMCOLORS /* just a place-holder */ } Colors; -char *defcolors = "exfxcxdxbxegedabagacad"; +const char *defcolors = "exfxcxdxbxegedabagacad"; /* colors for file types */ static struct { @@ -468,7 +468,7 @@ colortype(mode) void parsecolors(cs) - char *cs; + const char *cs; { int i; int j;