From 94b975ce7c6072661ebbe21eacfbc3fe1f4faade Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 20 Jul 2004 12:57:34 +0000 Subject: [PATCH] restore erroneously removed toggle* casts git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1861 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/global.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/global.c b/src/global.c index 933b7b1c..e341f516 100644 --- a/src/global.c +++ b/src/global.c @@ -974,12 +974,12 @@ void toggle_init_one(int val, const char *desc, long flag) toggle *u; if (toggles == NULL) { - toggles = nmalloc(sizeof(toggle)); + toggles = (toggle *)nmalloc(sizeof(toggle)); u = toggles; } else { for (u = toggles; u->next != NULL; u = u->next) ; - u->next = nmalloc(sizeof(toggle)); + u->next = (toggle *)nmalloc(sizeof(toggle)); u = u->next; } -- 2.39.5