1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/shells/es/files/patch-aa
Martin Cracauer aa2af247b4 Update to 0.9beta1.
This version is now GNU configure driven.

A word of warning for future committers so that you don't fall into
the same trap as I did: The source has an printf-style funtion
"print". This doesn't understand "%u", so the usual print-casting
stuff for long long ints isn't
  printf("%u", (unsigned int)foo);
but
  print("%d", (int)foo);
which obviously looses in some cases, but I didn't take the effort to
extend this function to take 64 bit value (just unsigned is limited as
well).

In this case, it isn't that bad, since it is used to print limits, but
memory limits are internally stored as "mega" or "kilo" anyway.
1998-06-08 13:59:35 +00:00

39 lines
724 B
Plaintext

*** prim-sys.c.original Mon Jun 8 14:55:11 1998
--- prim-sys.c Mon Jun 8 14:51:15 1998
***************
*** 213,219 ****
lim /= suf->amount;
break;
}
! print("%-8s\t%d%s\n", limit->name, lim, (suf == NULL || lim == 0) ? "" : suf->name);
}
}
--- 213,219 ----
lim /= suf->amount;
break;
}
! print("%-8s\t%d%s\n", limit->name, (int)lim, (suf == NULL || lim == 0) ? "" : suf->name);
}
}
*** configure.orig Mon Jun 8 15:02:05 1998
--- configure Mon Jun 8 15:02:37 1998
***************
*** 2344,2350 ****
cat >> confdefs.h <<EOF
! #define LIMIT_T $es_cv_rlimit_t
EOF
--- 2344,2350 ----
cat >> confdefs.h <<EOF
! #define LIMIT_T u_quad_t
EOF