[kaffe] Syntax Error

Alexander Boettcher ab764283@os.inf.tu-dresden.de
Mon Jan 19 03:23:05 2004


This is a multi-part message in MIME format.
--------------040009030008060607070007
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

in  kaffe/libraries/clib/net/PlainDatagramSocketImpl.c is a syntax 
error, when using the #else path. A brace is misplaced at row 461. 

439 : case java_net_SocketOptions_IP_MULTICAST_IF:
440 :    #if defined(IP_MULTICAST_IF)
441 :                addrp = (struct Hjava_net_InetAddress*)arg;
442 :                {
443 :                        struct in_addr ia;
444 :
445 :                        memcpy(&ia, 
unhand_byte_array(unhand(addrp)->addr),
446 :                               sizeof(ia));
447 :
448 :                        r = 
KSETSOCKOPT(unhand(unhand(this)->fd)->nativeFd,
449 :                                        IPPROTO_IP,
450 :                                        IP_MULTICAST_IF,
451 :                                        &ia,
452 :                                        sizeof(ia));
453 :                        if (r) {
454 :                                SignalError("java.net.SocketException",
455 :                                            SYS_ERROR(r));
456 :                        }
457 :    #else
458 :                        SignalError("java.net.SocketException",
459 :                                   "IP_MULTICAST_IF is not supported");
460 :    #endif
461 :    }
462 :    break;

I attached the 'diff', please fix it. (I'm using the CVS version of kaffe.)

thx,

Alexander.


--------------040009030008060607070007
Content-Type: text/plain;
 name="patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch"

456a457
> 		}
461d461
< 		}

--------------040009030008060607070007--