diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2020-03-05 16:56:19 +0100 |
---|---|---|
committer | James Cameron <quozl@laptop.org> | 2020-03-12 14:17:55 +1100 |
commit | d8b5f800f772e3b275794069ec3a043011b43b86 (patch) | |
tree | e8eba582a6c1b4cf82f90727f0347a3b213d3524 | |
parent | f68d3df850130846d0f7f2d944d6edc2df82611f (diff) | |
download | openfirmware-d8b5f800f772e3b275794069ec3a043011b43b86.tar.gz |
clients/emacs: don't return without a value
Return TRUE on success like the rest of the code base does to silence
the warnings:
ansi.c: In function 'ansifcol':
ansi.c:86:3: warning: 'return' with no value, in function returning non-void
86 | return;
| ^~~~~~
ansi.c:80:1: note: declared here
80 | ansifcol(color) /* set the current output color */
| ^~~~~~~~
ansi.c: In function 'ansibcol':
ansi.c:108:3: warning: 'return' with no value, in function returning non-void
108 | return;
| ^~~~~~
ansi.c:102:1: note: declared here
102 | ansibcol(color) /* set the current background color */
| ^~~~~~~~
-rw-r--r-- | clients/emacs/ansi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/emacs/ansi.c b/clients/emacs/ansi.c index 13823237..3ce12733 100644 --- a/clients/emacs/ansi.c +++ b/clients/emacs/ansi.c @@ -83,7 +83,7 @@ int color; /* color to set */ { if (color == cfcolor) - return; + return(TRUE); ttputc(ESC); ttputc('['); ansiparm(color+30); @@ -105,7 +105,7 @@ int color; /* color to set */ { if (color == cbcolor) - return; + return(TRUE); ttputc(ESC); ttputc('['); ansiparm(color+40); |