lkml.org 
[lkml]   [2001]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[x86-64 patch 6/11] ISDN strcpy removed
Hi!

The ISDN code contains an extra definition of strcpy which isn't needed
and collides with the kernel library one. This patch removes it.

diff -urN linux-x86_64/drivers/isdn/sc/debug.c linux/drivers/isdn/sc/debug.c
--- linux-x86_64/drivers/isdn/sc/debug.c Thu Apr 19 22:01:36 2001
+++ linux/drivers/isdn/sc/debug.c Thu Sep 13 10:52:56 2001
@@ -26,8 +26,7 @@
* +1 (416) 297-6433 Facsimile
*/
#include <linux/kernel.h>
-
-inline char *strcpy(char *, const char *);
+#include <linux/string.h>

int dbg_level = 0;
static char dbg_funcname[255];
@@ -45,19 +44,6 @@
strcpy(dbg_funcname, func);
if(dbg_level)
printk("--> Entering function %s\n", dbg_funcname);
-}
-
-inline char *strcpy(char *dest, const char *src)
-{
- char *i = dest;
- char *j = (char *) src;
-
- while(*j) {
- *i = *j;
- i++; j++;
- }
- *(++i) = 0;
- return dest;
}

inline void pullphone(char *dn, char *str)
--
Vojtech Pavlik
SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.029 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site