Pretty much what I suspected.
And yeah, thats what I ended up doing - it works like a charm

thanx...

Daniel-Constantin Mierla wrote:

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
begin:vcard
fn:Kanakatti Mahesh Subramanya
n:Subramanya;Kanakatti
org:Aptela, Inc.
adr:;;1616 Anderson Road;McLean;VA;22102;USA
email;internet:[EMAIL PROTECTED]
title:CTO
tel;work:800.979.4638x9100
tel;fax:800.979/4638
tel;home:312.491.1909
tel;cell:773.220.6484
x-mozilla-html:TRUE
url:http://www.aptela.com
version:2.1
end:vcard

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

Reply via email to