projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6536dfc
)
(strstr): Deleted.
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 19 May 1995 21:46:07 +0000
(17:46 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 19 May 1995 21:46:07 +0000
(17:46 -0400)
From-SVN: r9746
gcc/collect2.c
patch
|
blob
|
history
diff --git
a/gcc/collect2.c
b/gcc/collect2.c
index c2a073e6ef7efa1ab501aa4ec1035928e019c5b0..cfc279088b8fcd494c822cf4026ce823f87f8ece 100644
(file)
--- a/
gcc/collect2.c
+++ b/
gcc/collect2.c
@@
-363,30
+363,6
@@
my_strerror (e)
return buffer;
#endif
}
-
-#ifndef POSIX
-char *
-strstr (s1, s2)
- char *s1, *s2;
-{
- register char *p = s1;
- extern char *strchr ();
- extern int strncmp ();
-#if __GNUC__==2
- extern __SIZE_TYPE__ strlen ();
-#endif
- register int len = strlen (s2);
-
- for (; (p = strchr (p, *s2)) != 0; p++)
- {
- if (strncmp (p, s2, len) == 0)
- {
- return (p);
- }
- }
- return (0);
-}
-#endif
\f
/* Delete tempfiles and exit function. */