1
0
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:
nbd
2006-03-25 14:31:42 +00:00
parent 6db467ac85
commit 8764b18cdd
3 changed files with 14 additions and 10 deletions

View File

@@ -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