From: Vojtech Pavlik <vojtech@suse.cz>
To: torvalds@transmeta.com
Subject: [x86-64 patch 6/11] ISDN strcpy removed
Date: Thu, 13 Sep 2001 18:38:02 +0200 [thread overview]
Message-ID: <20010913183802.A2602@suse.cz> (raw)
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
reply other threads:[~2001-09-13 16:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010913183802.A2602@suse.cz \
--to=vojtech@suse.cz \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox