Re: [PATCH 4/5] Make 'diff_populate_filespec()' use the new 'strbuf_readlink()'
- From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
- Date
- Dec 18, 2008, 17:28 UTC
- Message-ID
- <494A8822.8090601@lsrfire.ath.cx>
- In-Reply-To
- <494A80D3.7070605@lsrfire.ath.cx>
René Scharfe schrieb:
Show 16 quoted lines
> Mark Burton schrieb: >> Howdy folks, >> >> When I compile this latest version of diff.c on a i686 dual-core Pentium box >> I see: >> >> diff.c: In function ‘diff_populate_filespec’: >> diff.c:1781: warning: passing argument 2 of ‘strbuf_detach’ from incompatible pointer type >> >> The same code compiles without warning on a x86_64 AMD box. Both >> machines are running stock Ubuntu 8.04. >> >> Does it need a cast on some architectures? > > The type of the size member of struct stat is off_t, while strbuf_detach expects > a size_t pointer. This patch should fix the warning:
Nevermind, I somehow missed the last "t" in line 1760.. The patch works nevertheless. 8-)
René