mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
fix gcc4-related bug in switch-robo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3483 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -68,13 +68,6 @@ static struct file_operations switch_proc_fops = {
|
||||
write: switch_proc_write
|
||||
};
|
||||
|
||||
static inline char *strdup(char *str)
|
||||
{
|
||||
char *new = kmalloc(strlen(str) + 1, GFP_KERNEL);
|
||||
strcpy(new, str);
|
||||
return new;
|
||||
}
|
||||
|
||||
static ssize_t switch_proc_read(struct file *file, char *buf, size_t count, loff_t *ppos)
|
||||
{
|
||||
#ifdef LINUX_2_4
|
||||
|
||||
Reference in New Issue
Block a user