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.master
parent
79c836b11b
commit
beae2da10d
|
@ -313,7 +313,7 @@ void discard_buffer(void)
|
||||||
void add_to_funcs(void (*func)(void), int menus, const char *desc, const char *help,
|
void add_to_funcs(void (*func)(void), int menus, const char *desc, const char *help,
|
||||||
bool blank_after, bool viewok)
|
bool blank_after, bool viewok)
|
||||||
{
|
{
|
||||||
subnfunc *f = (subnfunc *)nmalloc(sizeof(subnfunc));
|
subnfunc *f = nmalloc(sizeof(subnfunc));
|
||||||
|
|
||||||
if (allfuncs == NULL)
|
if (allfuncs == NULL)
|
||||||
allfuncs = f;
|
allfuncs = f;
|
||||||
|
@ -344,7 +344,7 @@ void add_to_sclist(int menus, const char *scstring, const int keycode,
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
static int counter = 0;
|
static int counter = 0;
|
||||||
#endif
|
#endif
|
||||||
sc *s = (sc *)nmalloc(sizeof(sc));
|
sc *s = nmalloc(sizeof(sc));
|
||||||
|
|
||||||
/* Start the list, or tack on the next item. */
|
/* Start the list, or tack on the next item. */
|
||||||
if (sclist == NULL)
|
if (sclist == NULL)
|
||||||
|
|
Loading…
Reference in New Issue