From 96c9beedecccb1dbdd2a24294d25ed796639fd02 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Wed, 12 Feb 2014 18:27:43 +0100 Subject: Fix warning about discarding 'const' qualifier Signed-off-by: Egbert Eich Reviewed-by: Jason Gerecke --- src/wcmValidateDevice.c | 2 +- test/wacom-tests.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c index cc0b807..eb94d92 100644 --- a/src/wcmValidateDevice.c +++ b/src/wcmValidateDevice.c @@ -716,7 +716,7 @@ int wcmParseSerials (InputInfoPtr pInfo) pInfo->name, serial, name); ser->name = strdup(name); } - else ser->name = ""; /*no name yet*/ + else ser->name = strdup(""); /*no name yet*/ if (common->serials == NULL) common->serials = ser; diff --git a/test/wacom-tests.c b/test/wacom-tests.c index 75f32b6..743bd2c 100644 --- a/test/wacom-tests.c +++ b/test/wacom-tests.c @@ -185,7 +185,7 @@ test_normalize_pressure(void) priv.common = &common; priv.pInfo = &pInfo; - pInfo.name = "Wacom test device"; + pInfo.name = strdupa("Wacom test device"); priv.minPressure = 0; -- cgit v1.2.3