Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux drm: Knuckle under and d...
details: https://anonhg.NetBSD.org/src/rev/0b4995231dae
branches: trunk
changeset: 1028871:0b4995231dae
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:22:03 2021 +0000
description:
drm: Knuckle under and define sprintf in nbsd-namespace.h.
diffstat:
sys/external/bsd/drm2/include/linux/nbsd-namespace.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r f7c813b9fee8 -r 0b4995231dae sys/external/bsd/drm2/include/linux/nbsd-namespace.h
--- a/sys/external/bsd/drm2/include/linux/nbsd-namespace.h Sun Dec 19 12:21:56 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/nbsd-namespace.h Sun Dec 19 12:22:03 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nbsd-namespace.h,v 1.3 2021/12/19 09:59:22 riastradh Exp $ */
+/* $NetBSD: nbsd-namespace.h,v 1.4 2021/12/19 12:22:03 riastradh Exp $ */
/*-
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -46,4 +46,7 @@
/* Disable our historic malloc(9) compatibility macro. */
#undef free
+/* This should not appear in NetBSD code -- we do not sprintf! */
+#define sprintf(BUF, FMT, ARGS...) snprintf(BUF, SIZE_MAX, FMT, ##ARGS)
+
#endif /* _LINUX_NBSD_NAMESPACE_H_ */
Home |
Main Index |
Thread Index |
Old Index