diff options
author | Egbert Eich <eich@suse.com> | 2014-02-12 18:27:43 +0100 |
---|---|---|
committer | Egbert Eich <eich@suse.com> | 2014-02-19 14:08:57 +0100 |
commit | 96c9beedecccb1dbdd2a24294d25ed796639fd02 (patch) | |
tree | 2cd479e2a0bee36780e36240705abeada2dd78a3 | |
parent | e72f0c2146d3b84083561961c3eedc3ca003dca6 (diff) |
Fix warning about discarding 'const' qualifier
Signed-off-by: Egbert Eich <eich@suse.com>
Reviewed-by: Jason Gerecke <killertofu@gmail.com>
-rw-r--r-- | src/wcmValidateDevice.c | 2 | ||||
-rw-r--r-- | 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; |