~ubuntu-branches/ubuntu/utopic/trousers/utopic

« back to all changes in this revision

Viewing changes to src/tspi/rpc/tcstp/rpc.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2012-11-10 17:04:44 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20121110170444-yvoa372npyp02mwr
Tags: 0.3.10-1
* Imported Upstream version 0.3.10
* Update symbols file
* Force build of tools

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        /* min packet size should be the size of the header */
40
40
        memset(&comm->hdr, 0, sizeof(struct tcsd_packet_hdr));
41
41
        comm->hdr.packet_size = sizeof(struct tcsd_packet_hdr);
42
 
        if (parm_count > 0) {
43
 
                comm->hdr.type_offset = sizeof(struct tcsd_packet_hdr);
44
 
                comm->hdr.parm_offset = comm->hdr.type_offset +
45
 
                                        (sizeof(TCSD_PACKET_TYPE) * parm_count);
46
 
                comm->hdr.packet_size = comm->hdr.parm_offset;
47
 
        }
 
42
        comm->hdr.type_offset = sizeof(struct tcsd_packet_hdr);
 
43
        comm->hdr.parm_offset = comm->hdr.type_offset + (sizeof(TCSD_PACKET_TYPE) * parm_count);
 
44
        comm->hdr.packet_size = comm->hdr.parm_offset;
48
45
 
49
46
        memset(comm->buf, 0, comm->buf_size);
50
47
}