It works, but the value is printed as unsigned. Anyhow, now I changed the printing function for return code to print the string as signed int.

If you want to try, using your version of code, then do:

xlog("L_DBG", "Before : $rc");
route(15);
if($rc==-1) {
   xlog("L_DBG", "After : return code is -1 ($rc)");
}
.
.

route[15] {
blah;
blah;
return(-1);
}

Daniel


On 09/06/05 20:27, Kanakatti Mahesh Subramanya wrote:

In the following chunklet

xlog("L_DBG", "Before : $rc");
route(15);
xlog("L_DBG", "After : $rc");
.
.

route[15] {
blah;
blah;
return(-1);
}


If you look at the debug output, you'll see

Before : 4294967293
After : 4294967294


Needless to say, the associated "switch" statements don't work.. retcode does seem to be set to this...

cheers


_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to