diff options
-rw-r--r-- | usr.bin/ranlib/build.c | 10 | ||||
-rw-r--r-- | usr.bin/strip/strip.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/ranlib/build.c b/usr.bin/ranlib/build.c index e870b117d17..99f8c01f08a 100644 --- a/usr.bin/ranlib/build.c +++ b/usr.bin/ranlib/build.c @@ -1,4 +1,4 @@ -/* $OpenBSD: build.c,v 1.11 2003/06/12 20:58:10 deraadt Exp $ */ +/* $OpenBSD: build.c,v 1.12 2004/10/09 20:36:05 mickey Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -34,7 +34,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)build.c 5.3 (Berkeley) 3/12/91";*/ -static char rcsid[] = "$OpenBSD: build.c,v 1.11 2003/06/12 20:58:10 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: build.c,v 1.12 2004/10/09 20:36:05 mickey Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -176,7 +176,7 @@ rexec(int rfd, int wfd) if (nr != sizeof(strsize)) goto bad; - strsize = fix_long_order(strsize, N_GETMID(ebuf)); + strsize = fix_32_order(strsize, N_GETMID(ebuf)); /* Read in the string table. */ strsize -= sizeof(strsize); @@ -283,7 +283,7 @@ symobj(int mid) error(tname); /* First long is the size of the ranlib structure section. */ - size = fix_long_order(symcnt * sizeof(struct ranlib), mid); + size = fix_32_order(symcnt * sizeof(struct ranlib), mid); if (!fwrite((char *)&size, sizeof(size), 1, fp)) error(tname); @@ -306,7 +306,7 @@ symobj(int mid) /* Second long is the size of the string table. */ - size = fix_long_order(tsymlen, mid); + size = fix_32_order(tsymlen, mid); if (!fwrite((char *)&size, sizeof(size), 1, fp)) error(tname); diff --git a/usr.bin/strip/strip.c b/usr.bin/strip/strip.c index 1865fad235a..ca19fc80eb8 100644 --- a/usr.bin/strip/strip.c +++ b/usr.bin/strip/strip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strip.c,v 1.22 2004/07/12 10:44:11 miod Exp $ */ +/* $OpenBSD: strip.c,v 1.23 2004/10/09 20:36:05 mickey Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -37,7 +37,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)strip.c 5.8 (Berkeley) 11/6/91";*/ -static char rcsid[] = "$OpenBSD: strip.c,v 1.22 2004/07/12 10:44:11 miod Exp $"; +static char rcsid[] = "$OpenBSD: strip.c,v 1.23 2004/10/09 20:36:05 mickey Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -254,7 +254,7 @@ s_stab(const char *fn, int fd, EXEC *ep, struct stat *sp, off_t *sz) * of the string table. */ strbase = (char *)ep + N_STROFF(*ep); - allocsize = fix_long_order(*(u_long *)strbase, mid); + allocsize = fix_32_order(*(u_long *)strbase, mid); if ((nstrbase = malloc((u_int) allocsize)) == NULL) { warnx("%s", strerror(ENOMEM)); goto end; @@ -363,7 +363,7 @@ s_stab(const char *fn, int fd, EXEC *ep, struct stat *sp, off_t *sz) /* Fill in the new size of the string table. */ len = nstr - nstrbase; - *(u_long *)nstrbase = fix_long_order(len, mid); + *(u_long *)nstrbase = fix_32_order(len, mid); /* * Copy the new string table into place. Nsym should be pointing |