diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-12 23:53:31 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-12 23:53:31 -0700 |
commit | 578c21e6cbfcd42d2b765ff93a5340555ef91d9d (patch) | |
tree | d1c0cec0f04e444105fc6e5580b82777ff5d7635 /src/widget.c | |
parent | 96f53c6c3d6d31bc81187b5a5fdb3ec942cd6f51 (diff) | |
download | emacs-578c21e6cbfcd42d2b765ff93a5340555ef91d9d.tar.gz |
Remove unnecessary casts.
* xterm.c (x_term_init):
* xfns.c (x_set_border_pixel):
* widget.c (create_frame_gcs): Remove casts to unsigned long etc.
These aren't needed now that we assume ANSI C.
Diffstat (limited to 'src/widget.c')
-rw-r--r-- | src/widget.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/widget.c b/src/widget.c index 3053ceaea13..daea382d654 100644 --- a/src/widget.c +++ b/src/widget.c @@ -523,14 +523,11 @@ create_frame_gcs (ew) struct frame *s = ew->emacs_frame.frame; s->output_data.x->normal_gc - = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), - (unsigned long)0, (XGCValues *)0); + = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0); s->output_data.x->reverse_gc - = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), - (unsigned long)0, (XGCValues *)0); + = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0); s->output_data.x->cursor_gc - = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), - (unsigned long)0, (XGCValues *)0); + = XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0); s->output_data.x->black_relief.gc = 0; s->output_data.x->white_relief.gc = 0; } @@ -589,8 +586,7 @@ setup_frame_gcs (EmacsFrame ew) = XCreatePixmapFromBitmapData (XtDisplay(ew), RootWindowOfScreen (XtScreen (ew)), setup_frame_cursor_bits, 2, 2, - (unsigned long)0, (unsigned long)1, - ew->core.depth); + 0, 1, ew->core.depth); /* Normal video */ gc_values.foreground = ew->emacs_frame.foreground_pixel; |