projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix a bug that prevents the wgt634u from initializing the filesystem properly
[openwrt.git]
/
openwrt
/
target
/
linux
/
package
/
switch
/
src
/
switch-core.h
diff --git
a/openwrt/target/linux/package/switch/src/switch-core.h
b/openwrt/target/linux/package/switch/src/switch-core.h
index
a6621ee
..
5292469
100644
(file)
--- a/
openwrt/target/linux/package/switch/src/switch-core.h
+++ b/
openwrt/target/linux/package/switch/src/switch-core.h
@@
-48,4
+48,12
@@
extern switch_vlan_config *switch_parse_vlan(switch_driver *driver, char *buf);
extern int switch_parse_media(char *buf);
extern int switch_print_media(char *buf, int media);
+static inline char *strdup(char *str)
+{
+ char *new = kmalloc(strlen(str) + 1, GFP_KERNEL);
+ strcpy(new, str);
+ return new;
+}
+
+
#endif
This page took
0.027184 seconds
and
4
git commands to generate.