summaryrefslogtreecommitdiff
path: root/misc/vfu/patches/patch-vslib_getopt2.cpp
blob: 3d3bd97e1a9c7bd7282031233629bcae4c549928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-vslib_getopt2.cpp,v 1.2 2020/05/14 19:20:32 joerg Exp $

Sprinkle const to make more modern C++ compilers happier.

--- vslib/getopt2.cpp.orig	2001-10-28 13:53:02.000000000 +0000
+++ vslib/getopt2.cpp
@@ -40,7 +40,7 @@ static char *nextarg = NULL;
 
 /* Funktion */
 
-int getopt2(int argc, char *argv[], char *optstring)
+int getopt2(int argc, char *argv[], const char *optstring)
 
 /*
  *  AU: Auswertung der Kommandozeile
@@ -83,7 +83,7 @@ int getopt2(int argc, char *argv[], char
  */
 
 {
-    char *search;
+    const char *search;
 
     optarg = NULL;