summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-14 16:05:48 -0600
committerBrian Paul <[email protected]>2008-05-14 16:05:48 -0600
commit26988c170c61c21d0e76397689a270f485bc4086 (patch)
tree8ea3703c7633c14ad45af1565580da5593e70970 /src/mesa
parentafa4c792b00070a5c50730ba455df18629d4e550 (diff)
mesa: use CALLOC_STRUCT()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/prog_parameter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c
index 4eb7313bec1..0b61bac6961 100644
--- a/src/mesa/shader/prog_parameter.c
+++ b/src/mesa/shader/prog_parameter.c
@@ -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);
}