~vorlon/ubuntu/raring/upstart/lp.1199778

Viewing all changes in revision 666.

  • Committer: Scott James Remnant
  • Date: 2007-03-13 17:04:16 UTC
  • Revision ID: scott@netsplit.com-20070313170416-98r3u3yjtzfbh3h2
* upstart/wire.c (upstart_push_int, upstart_pop_int): Send over the
wire using a plain old integer type, instead of a fixed width type;
there's no advantage to using the fixed-width type and we could hurt
ourselves if we tried running on ILP64.
(upstart_push_unsigned, upstart_pop_unsigned): Likewise use a plain
unsigned int over the wire.
(upstart_push_string, upstart_pop_string): Use an unsigned int for
the length of the string, technically this means that we silently
truncate any string that's greater than 4GB on 64-bit platforms;
it's either that or make the test cases harder (we did this before
anyway).
(upstart_push_header, upstart_pop_header): Type is always an unsigned
int (best conversion from an enum)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: