]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Avoid MinGW-w64 strndup compiler warning
authorWolfgang Stöggl <c72578@yahoo.de>
Sat, 13 Apr 2019 20:34:48 +0000 (22:34 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 25 Apr 2019 14:57:34 +0000 (16:57 +0200)
commit1c231bf6dc84160b7c1aed4a3fd04063164e120a
treeb6725d8d3bfc70d8b6ce6c7161e1ec53716ccd1d
parent0d6e25e08b85eeffa38896f211af4825070714a9
Avoid MinGW-w64 strndup compiler warning

- Fixes the following MinGW-w64 GCC compiler warning:
  rrd_create.c:287:14: warning: declaration of 'strndup' shadows a
  built-in function [-Wshadow] static char *strndup(
- MinGW-w64: strndup is not detected by configure, therefore
  HAVE_STRNDUP is not defined.
  Use strndup_() here instead of strndup() to avoid any collisions.
src/rrd_create.c