[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#53472: package tunnelv depends on old stdc++ library



On Mon, Dec 27, 1999 at 12:50:54PM +1100, Hamish Moffatt wrote:
> On Sat, Dec 25, 1999 at 02:13:46PM +0100, Christian Kurz wrote:
> > I tried to recompile the package with the an up-to-date potato but it
> > bails out with a lot of error-message. So I would say an C++-Programmer
> > should take a look at the source first and fix it.
> 
> I'll include a patch for what I've got working so far.. but somebody else
> needs to fix the rest, since I can't work it out. Perhaps we should dump it?

I'll give it a bash..

[later]

Hmm.. the fix is actually quite simple. Patch attached.

Note that this doesn't fix all the various warnings, just a errors that it
aborted on.

-- 
Chris
<chrisb@sandy.force9.co.uk>
diff -ur orig/tunnelv-1.00/tunnelv/wvtunnel.cc tunnelv-1.00/tunnelv/wvtunnel.cc
--- orig/tunnelv-1.00/tunnelv/wvtunnel.cc	Tue Feb 16 09:56:23 1999
+++ tunnelv-1.00/tunnelv/wvtunnel.cc	Mon Dec 27 15:08:51 1999
@@ -434,7 +434,7 @@
 	
     case cPassword:
 	next = next_token_str();
-	pass = cfg.get("Tunnel Vision", "Magic Password", NULL);
+	pass = cfg.get("Tunnel Vision", "Magic Password", (const char *)NULL);
 	if (pass && !strcmp(next, pass))
 	{
 	    etunnel->print("OK I'll trust you from now on.\n");
@@ -723,7 +723,7 @@
 
 void WvTunnel::generate_ihave()
 {
-    const char *stored = cfg.get("Tunnel Vision", "Local Nets", NULL);
+    const char *stored = cfg.get("Tunnel Vision", "Local Nets", (const char *)NULL);
     WvIPAddr lastaddr;
     bool did_set = false;
     

Reply to: