Fix byte-compile errors during bootstrap. (Reported by Juraj Kubelka.)
authorKaroly Lorentey <lorentey@elte.hu>
Tue, 15 Jun 2004 18:46:31 +0000 (18:46 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Tue, 15 Jun 2004 18:46:31 +0000 (18:46 +0000)
* src/term.c (Ftty_display_color_cells): Return 0 in case of an error, not nil.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-201

README.multi-tty
src/term.c

index 691e5d0..2d020d3 100644 (file)
@@ -185,6 +185,7 @@ Romain Francoise <romain at orebokech dot com>
 Ami Fischman <ami at fischman dot org>
 Friedrich Delgado Friedrichs <friedel at nomaden dot org>
 Yoshiaki Kasahara <kasahara at nc dot kyushu-u dot ac dot jp>
+Jurej Kubelka <Juraj dot Kubelka at email dot cz>
 Istvan Marko <mi-mtty ar kismala dot com>
 Dan Nicolaescu <dann at ics dot uci dot edu>
 Gergely Nagy <algernon at debian dot org>
index 9052eab..ae659e4 100644 (file)
@@ -1996,7 +1996,7 @@ DEFUN ("tty-display-color-cells", Ftty_display_color_cells,
 {
   struct display *d = get_tty_display (display);
   if (!d)
-    return Qnil;
+    return make_number (0);
   else
     return make_number (d->display_info.tty->TN_max_colors);
 }