patch 8.1.1386: unessesary type casts for lalloc()
Problem: Unessesary type casts for lalloc().
Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
diff --git a/src/netbeans.c b/src/netbeans.c
index f1ba01a..2d55b80 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -863,7 +863,7 @@
int done = 0;
/* result is never longer than input */
- result = (char *)alloc_clear((unsigned)STRLEN(p) + 1);
+ result = (char *)alloc_clear(STRLEN(p) + 1);
if (result == NULL)
return NULL;
@@ -3210,7 +3210,8 @@
if (globalsignmaplen == 0) /* first allocation */
{
globalsignmaplen = 20;
- globalsignmap = (char **)alloc_clear(globalsignmaplen*sizeof(char *));
+ globalsignmap = (char **)alloc_clear(
+ globalsignmaplen * sizeof(char *));
}
else /* grow it */
{