diff options
author | Karel Zak | 2013-10-15 15:44:40 +0200 |
---|---|---|
committer | Karel Zak | 2013-10-15 15:44:40 +0200 |
commit | a814f0bb768f9b974767cdec53b3f862d5d393e7 (patch) | |
tree | 2a4d3011ad95e976c8937dd715d541aa17be9aab /misc-utils | |
parent | more: fix warning when compiled --without-ncurses (diff) | |
download | kernel-qcow2-util-linux-a814f0bb768f9b974767cdec53b3f862d5d393e7.tar.gz kernel-qcow2-util-linux-a814f0bb768f9b974767cdec53b3f862d5d393e7.tar.xz kernel-qcow2-util-linux-a814f0bb768f9b974767cdec53b3f862d5d393e7.zip |
cal: fix compiler warning on systems without term libs
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/cal.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc-utils/cal.c b/misc-utils/cal.c index dacc7a711..f91bc8ebe 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -135,10 +135,12 @@ static void my_putstring(char *s) #endif /* end of LIBTERMCAP / NCURSES */ - +#if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBNCURSESW) || defined(HAVE_LIBTERMCAP) static const char *term=""; -static const char *Senter="", *Sexit="";/* enter and exit standout mode */ static int Slen; /* strlen of Senter+Sexit */ +#endif + +static const char *Senter="", *Sexit="";/* enter and exit standout mode */ static char *Hrow; /* pointer to highlighted row in month */ #include "widechar.h" |