* stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
authorEric Blake <ebb9@byu.net>
Fri, 30 Jun 2006 04:20:00 +0000 (04:20 +0000)
committerEric Blake <ebb9@byu.net>
Fri, 30 Jun 2006 04:20:00 +0000 (04:20 +0000)
unused static function.

lib/ChangeLog
lib/stat_.h

index 64b977e5ee087b2f89ddec11651e25dd9b26e830..c01d0f790ed6a85386301f85efbf63a81e0ac11e 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-29  Eric Blake  <ebb9@byu.net>
+
+       * stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
+       unused static function.
+
 2006-06-29  Eric Blake  <ebb9@byu.net>
 
        * stat_.h: New file.
index 7f290cefa87ff207b20f4027d57cd468ed00630f..d2e0796d3624f8cdb18d326b81369f5ed19eaf8f 100644 (file)
    alias mkdir), only in the nonstandard io.h.  */
 #if ! HAVE_DECL_MKDIR && HAVE_IO_H
 # include <io.h>
-static int rpl_mkdir (char const *name, mode_t mode) { return _mkdir (name); }
+
+static inline int
+rpl_mkdir (char const *name, mode_t mode)
+{
+  return _mkdir (name);
+}
+
 # define mkdir rpl_mkdir
 #endif