2 Sep
2009
2 Sep
'09
1:49 a.m.
Laszlo Papp wrote:
Code cleaning, removing strndup, because it's available with glibc in the same manner, and a small typo fix.
Signed-off-by: Laszlo Papp <djszapi2@gmail.com> --- <snip>
-#ifndef HAVE_STRNDUP -char *strndup(const char *s, size_t n); -#endif - #endif /* _PM_UTIL_H */
I believe that strndup is a GNU library extension so is not universally supported. Hence the #ifndef here. Has this changed since the original commit (581769b7)? Allan