pkgsrc/misc/vfu/patches/patch-vfu_vfuopt.cpp
dholland 6175b00231 - make build stop on error
- sprinkle const
- should fix linux build
2014-06-29 19:43:54 +00:00

25 lines
932 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$NetBSD: patch-vfu_vfuopt.cpp,v 1.1 2014/06/29 19:43:54 dholland Exp $
Sprinkle const to make more modern C++ compilers happier.
--- vfu/vfuopt.cpp.orig 2002-05-17 08:48:41.000000000 +0000
+++ vfu/vfuopt.cpp
@@ -18,13 +18,13 @@
Options opt;
-char *NOYES[] = { " - ", "YES", NULL };
-char *NOYESPRECOPY[] = { " - ", "YES", "PRELIM", NULL };
-char *FTIMETYPE[] = { "CHANGE", "MODIFY", "ACCESS", NULL };
+const char *const NOYES[] = { " - ", "YES", NULL };
+const char *const NOYESPRECOPY[] = { " - ", "YES", "PRELIM", NULL };
+const char *const FTIMETYPE[] = { "CHANGE", "MODIFY", "ACCESS", NULL };
#ifdef _TARGET_GO32_
-char *TAGMARKS[] = { ">>", "=>", "->", "Í", "Ä", " ¯", "¯¯", NULL };
+const char *const TAGMARKS[] = { ">>", "=>", "->", "Í", "Ä", " ¯", "¯¯", NULL };
#else
-char *TAGMARKS[] = { ">>", "=>", "->", NULL };
+const char *const TAGMARKS[] = { ">>", "=>", "->", NULL };
#endif
ToggleEntry Toggles[] =