chiark / gitweb /
fileio: rename function parameter to avoid masking global symbol
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 29 Aug 2017 09:56:32 +0000 (10:56 +0100)
committerSven Eden <yamakuzure@gmx.net>
Tue, 29 Aug 2017 14:57:55 +0000 (16:57 +0200)
commit03539feb5202c9503c7dfb6faf4156accff0121c
treeb16cad90e4cf598cbc211300b28ad712c970f1cb
parentaf2885973e3018b639d8297bd838ec8ebbe93e8a
fileio: rename function parameter to avoid masking global symbol

> glibc exports a function called sync(), we should probably avoid
> overloading that as a variable here locally (gcc even used to warn about
> that, not sure why it doesn't anymore), to avoid confusion around what
> "if (sync)" actually means
src/basic/fileio.c