diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-05-31 17:43:49 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-05-31 17:50:44 +0200 |
commit | f11bd93cca997062d0a8a4f149a6c79c2b1a30fe (patch) | |
tree | afd10566c10d5c61570c4cc32934643105a1948f | |
parent | 9ab8968a880cbcce65389c8efa07cfbef4ad835f (diff) | |
download | connman-f11bd93cca997062d0a8a4f149a6c79c2b1a30fe.tar.gz connman-f11bd93cca997062d0a8a4f149a6c79c2b1a30fe.tar.bz2 connman-f11bd93cca997062d0a8a4f149a6c79c2b1a30fe.zip |
device: Do not use connman_element_set/get_string()
-rw-r--r-- | src/device.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c index b1a3b17f..3311fc9b 100644 --- a/src/device.c +++ b/src/device.c @@ -956,9 +956,11 @@ int connman_device_set_string(struct connman_device *device, } else if (g_str_equal(key, "Path") == TRUE) { g_free(device->path); device->path = g_strdup(value); + } else { + return -EINVAL; } - return connman_element_set_string(&device->element, key, value); + return 0; } /** @@ -984,7 +986,7 @@ const char *connman_device_get_string(struct connman_device *device, else if (g_str_equal(key, "Path") == TRUE) return device->path; - return connman_element_get_string(&device->element, key); + return NULL; } static void set_offlinemode(struct connman_element *element, gpointer user_data) |