Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/compat/sys Fix warning message for mknod symbol lin...



details:   https://anonhg.NetBSD.org/src/rev/9bde1d525a54
branches:  trunk
changeset: 999772:9bde1d525a54
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Jun 18 14:25:04 2019 +0000

description:
Fix warning message for mknod symbol linkage

The correct reference for mknod(2) is in <sys/stat.h>

diffstat:

 lib/libc/compat/sys/compat_mknod.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7437a7f664b2 -r 9bde1d525a54 lib/libc/compat/sys/compat_mknod.c
--- a/lib/libc/compat/sys/compat_mknod.c        Tue Jun 18 13:27:25 2019 +0000
+++ b/lib/libc/compat/sys/compat_mknod.c        Tue Jun 18 14:25:04 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_mknod.c,v 1.4 2013/10/04 21:07:37 christos Exp $ */
+/*     $NetBSD: compat_mknod.c,v 1.5 2019/06/18 14:25:04 kamil Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat_mknod.c,v 1.4 2013/10/04 21:07:37 christos Exp $");
+__RCSID("$NetBSD: compat_mknod.c,v 1.5 2019/06/18 14:25:04 kamil Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -48,7 +48,7 @@
 #include <compat/sys/stat.h>
 
 __warn_references(mknod,
-    "warning: reference to compatibility mknod(); include <time.h> to generate correct reference")
+    "warning: reference to compatibility mknod(); include <sys/stat.h> to generate correct reference")
 
 __strong_alias(mknod, __compat_mknod)
 



Home | Main Index | Thread Index | Old Index