Re: [xml] [PATCH] libxml2-2.6.1 for BeOS



Minor question. 

+#if defined(__BEOS__)
+       {
+               bool noblock = true;

Should nonblock really be bool? setsockopt() usually takes ints.

Don't know, it worked with bool, but if it's more common to use int it 
will work with int also.

I have it defined here this way:

int setsockopt(int sd, int prot, int opt, const void *data, unsigned 
datasize); 

so, in theory, it's ok to use any type of data as long as datasize is set 
properly, but if it's more "clean" to use int, or long it's ok.

Regards
Shard



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