mesa: use CALLOC_STRUCT()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 14 May 2008 22:05:48 +0000 (16:05 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 14 May 2008 22:05:48 +0000 (16:05 -0600)
src/mesa/shader/prog_parameter.c

index 4eb7313bec1b9eea3dbe9d3698674c10b12a3fdc..0b61bac69615db1cc493d3426c88f4b72d4606cb 100644 (file)
@@ -40,8 +40,7 @@
 struct gl_program_parameter_list *
 _mesa_new_parameter_list(void)
 {
-   return (struct gl_program_parameter_list *)
-      _mesa_calloc(sizeof(struct gl_program_parameter_list));
+   return CALLOC_STRUCT(gl_program_parameter_list);
 }