From: Erez Zadok Date: Fri, 29 Apr 2005 18:48:19 +0000 (+0000) Subject: * m4/macros/host_macros.m4: for macosx, change architecture value X-Git-Tag: am-utils-6_1_rc2~10 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=afff80270e6fdced0dc27816aef46c196c0f2eaf;p=am-utils-6.0.git * m4/macros/host_macros.m4: for macosx, change architecture value from "Power Macintosh" to "powerpc". * libamu/util.c (xstrlcpy): format 'len' parameter as u_long, not int (it's a size_t). --- diff --git a/ChangeLog b/ChangeLog index 03a1c84..7c6eced 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-04-29 Erez Zadok + + * m4/macros/host_macros.m4: for macosx, change architecture value + from "Power Macintosh" to "powerpc". + + * libamu/util.c (xstrlcpy): format 'len' parameter as u_long, not + int (it's a size_t). + 2005-04-16 Erez Zadok * scripts/amd.conf.5, doc/am-utils.texi (normalize_slashes diff --git a/NEWS b/NEWS index 6a7e491..3b575f1 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,7 @@ of strncpy/strlcpy to ensure safety. * pawd handles all file systems * fix double-free in type:=nfsx * timeo and retrans shouldn't be set for type:=toplvl + * k/arch value on macosx should be "powerpc" not "Power Macintosh" *** Notes specific to am-utils version 6.1-rc1 diff --git a/libamu/strutil.c b/libamu/strutil.c index a3d43ef..a55b138 100644 --- a/libamu/strutil.c +++ b/libamu/strutil.c @@ -37,7 +37,7 @@ * SUCH DAMAGE. * * - * $Id: strutil.c,v 1.16 2005/04/09 18:15:35 ottavio Exp $ + * $Id: strutil.c,v 1.17 2005/04/29 18:48:19 ezk Exp $ * */ @@ -94,7 +94,7 @@ void xstrlcpy(char *dst, const char *src, size_t len) { if (len < 0) { - plog(XLOG_ERROR, "xstrlcpy: illegal len %d", len); + plog(XLOG_ERROR, "xstrlcpy: illegal len %lu", (u_long) len); return; } if (len == 0) diff --git a/m4/macros/host_macros.m4 b/m4/macros/host_macros.m4 index 855db15..27d2ed5 100644 --- a/m4/macros/host_macros.m4 +++ b/m4/macros/host_macros.m4 @@ -55,6 +55,7 @@ AC_DEFUN([AMU_HOST_MACROS], sun3x ) host_arch=sun3 ;; sun ) host_arch=`(arch) 2>/dev/null` || host_arch=unknown ;; i?86 ) host_arch=i386 ;; # all x86 should show up as i386 + Power*Macintosh ) host_arch=powerpc ;; esac AC_DEFINE_UNQUOTED(HOST_ARCH, "$host_arch") AC_MSG_RESULT($host_arch)