projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab8968
)
device: Do not use connman_element_set/get_string()
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Tue, 31 May 2011 15:43:49 +0000
(17:43 +0200)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Tue, 31 May 2011 15:50:44 +0000
(17:50 +0200)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
b1a3b17
..
3311fc9
100644
(file)
--- 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)