restore erroneously removed toggle* casts

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1861 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-07-20 12:57:34 +00:00
parent 04419b9702
commit 94b975ce7c
1 changed files with 2 additions and 2 deletions

View File

@ -974,12 +974,12 @@ void toggle_init_one(int val, const char *desc, long flag)
toggle *u; toggle *u;
if (toggles == NULL) { if (toggles == NULL) {
toggles = nmalloc(sizeof(toggle)); toggles = (toggle *)nmalloc(sizeof(toggle));
u = toggles; u = toggles;
} else { } else {
for (u = toggles; u->next != NULL; u = u->next) for (u = toggles; u->next != NULL; u = u->next)
; ;
u->next = nmalloc(sizeof(toggle)); u->next = (toggle *)nmalloc(sizeof(toggle));
u = u->next; u = u->next;
} }