[sr-dev] unsigned int formatting char in rpc->struct_add?

Juha Heinanen jh at tutpro.com
Wed Apr 14 11:56:26 CEST 2010


i noticed that lcr.dump_gws prints defunct_until as a signed int, which
is wrong, because the value is unsigned int.

the statement in the code is this:

		rpc->struct_add(st, "dSddd",
				"strip",  gws[i].strip,
				"tag",    &tag,
				"weight", gws[i].weight,
				"flags",  gws[i].flags,
				"defunct_until",  &gws[i].defunct_until
				);

i tried to change the format string to "dSddu", but it didn't work:

Apr 14 12:49:34 localhost /usr/sbin/sip-proxy[30850]: : ctl [binrpc_run.c:1001]: BUG: binrpc: rpc_struct_add: formatting char 'u' not supported	    }

what is the correct formatting char for unsigned int or is there any?

-- juha




More information about the sr-dev mailing list