[GRASS-SVN] r71266 - grass/trunk/lib/linkm

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jul 17 09:31:25 PDT 2017


Author: mmetz
Date: 2017-07-17 09:31:24 -0700 (Mon, 17 Jul 2017)
New Revision: 71266

Modified:
   grass/trunk/lib/linkm/new.c
Log:
linkm lib: fix return type

Modified: grass/trunk/lib/linkm/new.c
===================================================================
--- grass/trunk/lib/linkm/new.c	2017-07-17 16:20:04 UTC (rev 71265)
+++ grass/trunk/lib/linkm/new.c	2017-07-17 16:31:24 UTC (rev 71266)
@@ -35,7 +35,7 @@
 		     malloc(Head->chunk_size * Head->unit_size))) {
 	    if (Head->exit_flag)
 		link_out_of_memory();
-	    return (struct link_head *)NULL;
+	    return NULL;
 	}
 
 	Head->ptr_array[Head->max_ptr++] = (VOID_T *) tmp;
@@ -57,5 +57,5 @@
     /* Unused = Unused->next */
     Head->Unused = link__get_next(Head->Unused);
 
-    return (struct link_head *)tmp;
+    return tmp;
 }



More information about the grass-commit mailing list