Need to declare asprintf_nowarn as inline to avoid gcc complaining.
authorRichard Jones <rjones@trick.home.annexia.org>
Tue, 28 Jul 2009 14:23:28 +0000 (15:23 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Tue, 28 Jul 2009 14:23:28 +0000 (15:23 +0100)
daemon/daemon.h

index 5bf6f35..9aa831a 100644 (file)
@@ -62,7 +62,7 @@ extern void udev_settle (void);
  * printf formatters %Q and %R.  See HACKING file for more
  * info about these.
  */
-static int
+static inline int
 asprintf_nowarn (char **strp, const char *fmt, ...)
 {
   int r;