aboutsummaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1995-10-18 15:56:55 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1995-10-18 15:56:55 +0000
commitee61b5a715f75ecca4282d282f5469d9f4777d04 (patch)
tree4951a539703a2a084ebcf29cd38910be81574bed /lib/csu
parent51ae81595763c48a8a3029f2508910d59c0ffd7b (diff)
downloadsrc-ee61b5a715f75ecca4282d282f5469d9f4777d04.tar.gz
src-ee61b5a715f75ecca4282d282f5469d9f4777d04.zip
put the _getenv and _strncmp under #ifdef DEBUG, which is the only time
they are used. Saves a few bytes here and there, nothing major.
Notes
Notes: svn path=/head/; revision=11562
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/i386/crt0.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c
index e42e21feb7cf..be4508f4c03a 100644
--- a/lib/csu/i386/crt0.c
+++ b/lib/csu/i386/crt0.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: crt0.c,v 1.17 1995/06/27 09:53:27 dfr Exp $
+ * $Id: crt0.c,v 1.18 1995/09/27 23:13:33 nate Exp $
*/
@@ -72,8 +72,10 @@ extern void _startup_setlocale __P((int, const char *));
extern struct _dynamic _DYNAMIC;
static struct ld_entry *ld_entry;
static void __do_dynamic_link ();
+#ifdef DEBUG
static char *_getenv();
static int _strncmp();
+#endif /* DEBUG */
#ifdef sun
#define LDSO "/usr/lib/ld.so"
@@ -334,6 +336,7 @@ dlerror()
/*
* Support routines
*/
+#ifdef DEBUG
static int
_strncmp(s1, s2, n)
@@ -369,6 +372,8 @@ _getenv(name)
return (char *)0;
}
+#endif /* DEBUG */
+
asm(" ___syscall:");
asm(" popl %ecx");
asm(" popl %eax");