~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: 2013-08-20 18:01:47 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20130820180147-ucz33jh8z2qx47ya
Tags: 0.3.11.2-1
* Imported Upstream version 0.3.11.2
* Upstream license changed to BSD
* Example tools are not shipped anymore
* Remove 05-gcc47.patch, not needed anymore
* Updated symbols file

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
initData(struct tcsd_comm_data *comm, int parm_count)
38
38
{
39
39
        /* min packet size should be the size of the header */
40
 
        memset(&comm->hdr, 0, sizeof(struct tcsd_packet_hdr));
 
40
        __tspi_memset(&comm->hdr, 0, sizeof(struct tcsd_packet_hdr));
41
41
        comm->hdr.packet_size = sizeof(struct tcsd_packet_hdr);
42
42
        comm->hdr.type_offset = sizeof(struct tcsd_packet_hdr);
43
43
        comm->hdr.parm_offset = comm->hdr.type_offset + (sizeof(TCSD_PACKET_TYPE) * parm_count);
44
44
        comm->hdr.packet_size = comm->hdr.parm_offset;
45
45
 
46
 
        memset(comm->buf, 0, comm->buf_size);
 
46
        __tspi_memset(comm->buf, 0, comm->buf_size);
47
47
}
48
48
 
49
49
int
352
352
                goto err_exit;
353
353
        }
354
354
 
355
 
        memset(&addr, 0, sizeof(addr));
 
355
        __tspi_memset(&addr, 0, sizeof(addr));
356
356
        addr.sin_family = AF_INET;
357
357
        addr.sin_port = htons(get_port());
358
358