Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen appease string + int warning.
details: https://anonhg.NetBSD.org/src/rev/83bedfe45d89
branches: trunk
changeset: 449010:83bedfe45d89
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 18 20:27:20 2019 +0000
description:
appease string + int warning.
diffstat:
lib/libc/gen/devname.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 899c47823910 -r 83bedfe45d89 lib/libc/gen/devname.c
--- a/lib/libc/gen/devname.c Mon Feb 18 19:35:44 2019 +0000
+++ b/lib/libc/gen/devname.c Mon Feb 18 20:27:20 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: devname.c,v 1.22 2012/06/03 21:42:46 joerg Exp $ */
+/* $NetBSD: devname.c,v 1.23 2019/02/18 20:27:20 christos Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: devname.c,v 1.22 2012/06/03 21:42:46 joerg Exp $");
+__RCSID("$NetBSD: devname.c,v 1.23 2019/02/18 20:27:20 christos Exp $");
#include "namespace.h"
#include "reentrant.h"
@@ -95,7 +95,7 @@
if (type != S_IFCHR || pts == NODEVMAJOR || major(dev) != pts)
return ENOENT;
- rv = snprintf(path, len, "%s%d", _PATH_DEV_PTS + sizeof(_PATH_DEV) - 1,
+ rv = snprintf(path, len, "%s%d", &_PATH_DEV_PTS[sizeof(_PATH_DEV) - 1],
minor(dev));
if (rv < 0 || (size_t)rv >= len)
return ERANGE;
Home |
Main Index |
Thread Index |
Old Index