From: Dave Love Date: Mon, 29 Sep 2003 18:15:16 +0000 (+0000) Subject: (face_numeric_value): Declare dim size_t. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1794 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3062711f99266b7cf966d5cd7da7f5a657152c47;p=emacs.git (face_numeric_value): Declare dim size_t. (Finternal_lisp_face_equal_p): Remove unused f. --- diff --git a/src/xfaces.c b/src/xfaces.c index 91214977d8e..067e6fd445e 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -1376,7 +1376,7 @@ tty_defined_color (f, color_name, color_def, alloc) color_def->green = 0; if (*color_name) - status = tty_lookup_color (f, build_string (color_name), color_def, 0); + status = tty_lookup_color (f, build_string (color_name), color_def, NULL); if (color_def->pixel == FACE_TTY_DEFAULT_COLOR && *color_name) { @@ -2108,7 +2108,7 @@ face_value (table, dim, symbol) static INLINE int face_numeric_value (table, dim, symbol) struct table_entry *table; - int dim; + size_t dim; Lisp_Object symbol; { struct table_entry *p = face_value (table, dim, symbol); @@ -4953,18 +4953,8 @@ If FRAME is omitted or nil, use the selected frame. */) Lisp_Object face1, face2, frame; { int equal_p; - struct frame *f; Lisp_Object lface1, lface2; - if (EQ (frame, Qt)) - f = NULL; - else - /* Don't use check_x_frame here because this function is called - before X frames exist. At that time, if FRAME is nil, - selected_frame will be used which is the frame dumped with - Emacs. That frame is not an X frame. */ - f = frame_or_selected_frame (frame, 2); - lface1 = lface_from_face_name (NULL, face1, 1); lface2 = lface_from_face_name (NULL, face2, 1); equal_p = lface_equal_p (XVECTOR (lface1)->contents,