diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-06-27 18:01:57 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-06-27 18:01:57 +0000 |
| commit | c02473048cee372cb8644e1f2d566431781074d2 (patch) | |
| tree | 689654cd7b37636279b5587ddd3b45ad6bddbd3c /auto/fmt/ptrfmt | |
| parent | b1af9bbcabf1bdbe119366971a2d0f6c3f8f595d (diff) | |
| download | nginx-c02473048cee372cb8644e1f2d566431781074d2.tar.gz nginx-c02473048cee372cb8644e1f2d566431781074d2.tar.bz2 | |
nginx-0.0.7-2004-06-27-22:01:57 import
Diffstat (limited to 'auto/fmt/ptrfmt')
| -rw-r--r-- | auto/fmt/ptrfmt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/auto/fmt/ptrfmt b/auto/fmt/ptrfmt index d69867714..20f0d320c 100644 --- a/auto/fmt/ptrfmt +++ b/auto/fmt/ptrfmt @@ -13,7 +13,7 @@ do cat << END > $NGX_AUTOTEST.c int main() { - printf("$fmt", ($ngx_type) $ngx_max_size); + printf("$fmt", ($ngx_type) $ngx_max_value); return 0; } @@ -22,10 +22,10 @@ END eval "$CC_WARN $CC_TEST_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c \ >> $NGX_ERR 2>&1" - max_size=`echo $ngx_max_size | sed -e "s/L*\$//"` + max_value=`echo $ngx_max_value | sed -e "s/L*\$//"` if [ -x $NGX_AUTOTEST ]; then - if [ "`$NGX_AUTOTEST`" = $max_size ]; then + if [ "`$NGX_AUTOTEST`" = $max_value ]; then ngx_fmt=$fmt fi fi @@ -49,8 +49,8 @@ if [ $ngx_fmt = no ]; then fi -if [ $ngx_ptr_bytes = 4 ]; then - fmtX="%0`expr 2 \* $ngx_ptr_bytes`" +if [ $ngx_ptr_size = 4 ]; then + fmtX="%0`expr 2 \* $ngx_ptr_size`" else fmtX="%" fi |
