]> git.wh0rd.org Git - nano.git/commitdiff
restore erroneously removed toggle* casts
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 20 Jul 2004 12:57:34 +0000 (12:57 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 20 Jul 2004 12:57:34 +0000 (12:57 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1861 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/global.c

index 933b7b1c2b6cde8fa352d25c1c52ffcc6bd0a823..e341f516fd62d44106dd540a98ef1b7bfed2835b 100644 (file)
@@ -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;
     }