summaryrefslogtreecommitdiff
path: root/src/i830_lvds.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-04 16:04:37 -0700
committerOwain G. Ainsworth <oga@openbsd.org>2010-06-07 21:06:49 +0100
commitae9f6675da8663d3b2706c7975c6160fea23f676 (patch)
treec703ed4ba9a6e53aa0ba705bc29b58473a4f4477 /src/i830_lvds.c
parent8e7aaa46ce788c7661654868659894a42efb836d (diff)
Use libc instead of deprecated libc wrappers for malloc/calloc/free.
Signed-off-by: Owain G. Ainsworth <oga@openbsd.org> (cherrypick of part of this commit came from 2c1fda08e889cad07acb452230da06f9c383d21c by eric anholt)
Diffstat (limited to 'src/i830_lvds.c')
-rw-r--r--src/i830_lvds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_lvds.c b/src/i830_lvds.c
index 7af63ffe..651916cf 100644
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -1084,7 +1084,7 @@ i830_lvds_get_modes(xf86OutputPtr output)
if (!output->MonInfo)
{
- edid_mon = xcalloc (1, sizeof (xf86Monitor));
+ edid_mon = calloc (1, sizeof (xf86Monitor));
if (edid_mon)
{
struct detailed_monitor_section *det_mon = edid_mon->det_mon;
@@ -1135,7 +1135,7 @@ i830_lvds_destroy (xf86OutputPtr output)
xf86DeleteMode (&intel->lvds_fixed_mode, intel->lvds_fixed_mode);
if (intel_output)
- xfree (intel_output);
+ free (intel_output);
}
#ifdef RANDR_12_INTERFACE