Mop up some warnings.

This commit is contained in:
Josef Karthauser 2001-12-28 19:26:06 +00:00
parent b0bc91e955
commit 6bd042dfe9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88587
4 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -49,6 +49,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include "lomac.h"

View File

@ -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) {

View File

@ -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;