File getopt.patch of Package mathgl

Index: mathgl-2.3.3/utils/make_bin.cpp
===================================================================
--- mathgl-2.3.3.orig/utils/make_bin.cpp
+++ mathgl-2.3.3/utils/make_bin.cpp
@@ -24,7 +24,7 @@ int main(int argc, char *argv[])
 {
 	mglFont fnt;
 	std::string path, base, fname;
-	char ch;
+	int ch;
 
 	while(1)
 	{
Index: mathgl-2.3.3/utils/mglconv.cpp
===================================================================
--- mathgl-2.3.3.orig/utils/mglconv.cpp
+++ mathgl-2.3.3/utils/mglconv.cpp
@@ -28,7 +28,8 @@ int main(int argc, char *argv[])
 	mgl_suppress_warn(true);
 	mglGraph gr;
 	mglParse p(true);
-	char ch, buf[2048], iname[256]="", oname[256]="";
+	char buf[2048], iname[256]="", oname[256]="";
+	int ch;
 	std::vector<std::wstring> var;
 	std::wstring str;
 	bool none=false;
Index: mathgl-2.3.3/utils/mglview.cpp
===================================================================
--- mathgl-2.3.3.orig/utils/mglview.cpp
+++ mathgl-2.3.3/utils/mglview.cpp
@@ -39,7 +39,8 @@ int show(mglGraph *gr)
 //-----------------------------------------------------------------------------
 int main(int argc, char **argv)
 {
-	char ch, iname[256]="";
+	char iname[256]="";
+	int ch;
 	mgl_suppress_warn(true);
 	while(1)
 	{
openSUSE Build Service is sponsored by