]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Replace BSD MAXPATHLEN by POSIX PATH_MAX
authorFelix Janda <felix.janda@posteo.de>
Sun, 26 Jul 2015 19:25:32 +0000 (21:25 +0200)
committerStephen Hemminger <shemming@brocade.com>
Tue, 28 Jul 2015 23:39:29 +0000 (16:39 -0700)
commitea343669fa21cd4819576ddbb008ca49dfa5bf75
tree525c291a90455056444847f76ab536e5b9ac5d8b
parent6b4867e62175ca0635f8cf6b22f882272d5a2219
Replace BSD MAXPATHLEN by POSIX PATH_MAX

Prefer using the POSIX constant PATH_MAX instead of the legacy BSD
derived MAXPATHLEN. The necessary includes for MAXPATHLEN and PATH_MAX
are <sys/param.h> and <limits.h>, respectively.

Signed-off-by: Felix Janda <felix.janda@posteo.de>
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
ip/ipnetns.c
lib/namespace.c