Commit beae2da1 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey Committed by Benno Schulenberg
Browse files

weeding: remove redundant casts of nmalloc()

A cast on the same line as a variable declaration is superfluous,
because it effectively defines the type of the variable twice.
parent 79c836b1
Showing with 2 additions and 2 deletions
+2 -2
......@@ -313,7 +313,7 @@ void discard_buffer(void)
void add_to_funcs(void (*func)(void), int menus, const char *desc, const char *help,
bool blank_after, bool viewok)
{
subnfunc *f = (subnfunc *)nmalloc(sizeof(subnfunc));
subnfunc *f = nmalloc(sizeof(subnfunc));
if (allfuncs == NULL)
allfuncs = f;
......@@ -344,7 +344,7 @@ void add_to_sclist(int menus, const char *scstring, const int keycode,
#ifndef NANO_TINY
static int counter = 0;
#endif
sc *s = (sc *)nmalloc(sizeof(sc));
sc *s = nmalloc(sizeof(sc));
/* Start the list, or tack on the next item. */
if (sclist == NULL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment