This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix --wrap example in ld manual
- From: Andreas Schwab <schwab at suse dot de>
- To: binutils at sources dot redhat dot com
- Date: Mon, 01 Mar 2004 16:32:05 +0100
- Subject: Fix --wrap example in ld manual
This fixes the anachronistic example for --wrap in the ld manual.
Andreas.
2004-03-01 Andreas Schwab <schwab@suse.de>
* ld.texinfo (Options): Fix example for --wrap.
--- ld/ld.texinfo.~1.105.~ 2004-02-23 15:50:08.000000000 +0100
+++ ld/ld.texinfo 2004-03-01 14:30:36.000000000 +0100
@@ -1702,9 +1702,9 @@ Here is a trivial example:
@smallexample
void *
-__wrap_malloc (int c)
+__wrap_malloc (size_t c)
@{
- printf ("malloc called with %ld\n", c);
+ printf ("malloc called with %zu\n", c);
return __real_malloc (c);
@}
@end smallexample
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."