]> git.eshelyaron.com Git - emacs.git/commitdiff
* term.c (term_mouse_position): Rename local to avoid shadowing.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 02:15:18 +0000 (18:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 02:15:18 +0000 (18:15 -0800)
src/ChangeLog
src/term.c

index a8594fb3fc67375547551bffd6024ba064af9e99..a3695bda635764df10bbca18acbd571567743609 100644 (file)
        * termchar.h (struct tty_display_info): Likewise.
        * term.c (tgetflag, tgetnum, tgetstr): Redefine to use const pointers.
 
+       * term.c (term_mouse_position): Rename local to avoid shadowing.
+
 2011-03-06  Chong Yidong  <cyd@stupidchicken.com>
 
        * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
index 6986cfb9e03d6771cc3319ba9b971865deaf1f5a..9531cce5f9ff0feda89177b2cd128cfc086a34f9 100644 (file)
@@ -2700,14 +2700,14 @@ term_mouse_movement (FRAME_PTR frame, Gpm_Event *event)
    Set *bar_window to Qnil, and *x and *y to the column and
    row of the character cell the mouse is over.
 
-   Set *time to the time the mouse was at the returned position.
+   Set *timeptr to the time the mouse was at the returned position.
 
    This clears mouse_moved until the next motion
    event arrives.  */
 static void
 term_mouse_position (FRAME_PTR *fp, int insist, Lisp_Object *bar_window,
                     enum scroll_bar_part *part, Lisp_Object *x,
-                    Lisp_Object *y, unsigned long *time)
+                    Lisp_Object *y, unsigned long *timeptr)
 {
   struct timeval now;
 
@@ -2720,7 +2720,7 @@ term_mouse_position (FRAME_PTR *fp, int insist, Lisp_Object *bar_window,
   XSETINT (*x, last_mouse_x);
   XSETINT (*y, last_mouse_y);
   gettimeofday(&now, 0);
-  *time = (now.tv_sec * 1000) + (now.tv_usec / 1000);
+  *timeptr = (now.tv_sec * 1000) + (now.tv_usec / 1000);
 }
 
 /* Prepare a mouse-event in *RESULT for placement in the input queue.