svn commit: r287332 - head/lib/libc/gen

Craig Rodrigues rodrigc at FreeBSD.org
Mon Aug 31 19:40:55 UTC 2015


Author: rodrigc
Date: Mon Aug 31 19:40:54 2015
New Revision: 287332
URL: https://svnweb.freebsd.org/changeset/base/287332

Log:
  Include stdlib.h to get devname() prototype.
  
  Eliminates -Wmissing-prototypes warnings with gcc

Modified:
  head/lib/libc/gen/devname.c

Modified: head/lib/libc/gen/devname.c
==============================================================================
--- head/lib/libc/gen/devname.c	Mon Aug 31 19:20:18 2015	(r287331)
+++ head/lib/libc/gen/devname.c	Mon Aug 31 19:40:54 2015	(r287332)
@@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
 
 #include <stdio.h>
 #include <stdint.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sys/param.h>
 #include <sys/stat.h>


More information about the svn-src-head mailing list