summaryrefslogtreecommitdiffstats
path: root/lib/csu/i386
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-10-18 15:56:55 +0000
committerphk <phk@FreeBSD.org>1995-10-18 15:56:55 +0000
commit361585330b1401a115852c9b973e4418a8d09669 (patch)
tree4951a539703a2a084ebcf29cd38910be81574bed /lib/csu/i386
parente1439d19175a345a9677a0d960136b1213cba312 (diff)
downloadFreeBSD-src-361585330b1401a115852c9b973e4418a8d09669.zip
FreeBSD-src-361585330b1401a115852c9b973e4418a8d09669.tar.gz
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.
Diffstat (limited to 'lib/csu/i386')
-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 e42e21f..be4508f 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");
OpenPOWER on IntegriCloud