changeset 86561:13041217da4b

(Fget_buffer_create, Fmake_indirect_buffer): Don't cast redundantly.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 28 Nov 2007 04:46:22 +0000
parents e08a75d0a31e
children 5253774a34e8
files src/ChangeLog src/buffer.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Nov 28 04:45:32 2007 +0000
+++ b/src/ChangeLog	Wed Nov 28 04:46:22 2007 +0000
@@ -1,5 +1,8 @@
 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
+	Don't cast redundantly.
+
 	* keyboard.c (KEY_TO_CHAR): New macro.
 	(parse_modifiers, apply_modifiers): Accept integer arguments.
 	(read_key_sequence): Use them to unify the "shift->unshift" mapping
--- a/src/buffer.c	Wed Nov 28 04:45:32 2007 +0000
+++ b/src/buffer.c	Wed Nov 28 04:46:22 2007 +0000
@@ -348,7 +348,7 @@
   if (SCHARS (name) == 0)
     error ("Empty string for buffer name is not allowed");
 
-  b = (struct buffer *) allocate_buffer ();
+  b = allocate_buffer ();
 
   /* An ordinary buffer uses its own struct buffer_text.  */
   b->text = &b->own_text;
@@ -549,7 +549,7 @@
   if (SCHARS (name) == 0)
     error ("Empty string for buffer name is not allowed");
 
-  b = (struct buffer *) allocate_buffer ();
+  b = allocate_buffer ();
 
   b->base_buffer = (XBUFFER (base_buffer)->base_buffer
 		    ? XBUFFER (base_buffer)->base_buffer