File wmisdn-1.8.dif of Package WindowMaker-applets

--- Makefile
+++ Makefile
@@ -6,10 +6,10 @@
 DIR = wmisdn-$(VER)
 
 .cc.o:
-	cc -c -Wall -DVER=$(VER) $< -o $*.o
+	cc -c -Wall -DVER=$(VER) $< -o $*.o $(CFLAGS)
 
 wmisdn: $(OBJS)
-	cc -o wmisdn $^ $(LIBDIR) $(LIBS)
+	c++ -o wmisdn $^ $(LIBDIR) $(LIBS)
 
 install:: wmisdn
 	install -d /usr/local/sbin/
--- wmisdn.cc
+++ wmisdn.cc
@@ -1187,7 +1187,7 @@
 
 int isdn_ioctl( int func, void *arg, const char *errmsg, const char *filename )
 {
-	int fd = fd = open( filename, O_RDONLY );
+	int fd = open( filename, O_RDONLY );
 	if( fd == -1 )
 	{
 		if( errmsg != NULL )
openSUSE Build Service is sponsored by