From: David Lawrence Ramsey Date: Sun, 24 Jul 2005 20:23:40 +0000 (+0000) Subject: make color_to_short() actually return a short X-Git-Tag: v1.3.9~125 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=150d88996575bbc9039bcf83109f0fbc856b6c0c;p=nano.git make color_to_short() actually return a short git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2921 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/proto.h b/src/proto.h index 8bee99c1..fa6a309a 100644 --- a/src/proto.h +++ b/src/proto.h @@ -429,7 +429,7 @@ void rcfile_error(const char *msg, ...); char *parse_next_word(char *ptr); char *parse_argument(char *ptr); #ifdef ENABLE_COLOR -int color_to_short(const char *colorname, bool *bright); +short color_to_short(const char *colorname, bool *bright); char *parse_next_regex(char *ptr); bool nregcomp(regex_t *preg, const char *regex, int eflags); void parse_syntax(char *ptr); diff --git a/src/rcfile.c b/src/rcfile.c index eb398767..96e6f080 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -180,7 +180,7 @@ char *parse_argument(char *ptr) } #ifdef ENABLE_COLOR -int color_to_short(const char *colorname, bool *bright) +short color_to_short(const char *colorname, bool *bright) { short mcolor = -1;