Mercurial > emacs
diff src/buffer.c @ 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 | 59344cb482f3 |
| children | 7d40f609f780 53108e6cea98 |
line wrap: on
line diff
--- 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
