From: David Lawrence Ramsey Date: Tue, 20 Jul 2004 12:57:34 +0000 (+0000) Subject: restore erroneously removed toggle* casts X-Git-Tag: v1.3.4~45 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=94b975ce7c6072661ebbe21eacfbc3fe1f4faade;p=nano.git restore erroneously removed toggle* casts git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1861 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- 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; }