Changeset 541 for trunk/src/sh_tools.c


Ignore:
Timestamp:
Jan 16, 2019, 11:57:48 PM (6 years ago)
Author:
katerina
Message:

Fix for ticket #433 (coding standardisation).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_tools.c

    r539 r541  
    7070#endif
    7171#ifndef FD_ZERO
    72 #define FD_ZERO(p)      memset((char *)(p), '\0', sizeof(*(p)))
     72#define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
    7373#endif
    7474
     
    135135  int             res;
    136136
    137   memset (&hints, '\0', sizeof (hints));
     137  memset (&hints, 0, sizeof (hints));
    138138  hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
    139139  hints.ai_socktype = SOCK_STREAM;
     
    180180  int sd;
    181181
    182   memset(&sin, '\0', sizeof(sin));
     182  memset(&sin, 0, sizeof(sin));
    183183  sin.sin_family = AF_INET;
    184184  if (inet_aton(str, &(sin.sin_addr)))
     
    915915        fputs(_("-03- not cached\n"), stderr);
    916916
    917       memset (&hints, '\0', sizeof (hints));
     917      memset (&hints, 0, sizeof (hints));
    918918      hints.ai_flags = AI_ADDRCONFIG;
    919919#if defined(AI_CANONNAME)
     
    16681668  if ((i_blk*16) > payload_size && !oflow)
    16691669    {
    1670       memset(&full_ret[16+payload_size], '\0', (i_blk*16) - payload_size);
     1670      memset(&full_ret[16+payload_size], 0, (i_blk*16) - payload_size);
    16711671      payload_size = i_blk * 16;
    16721672    }
    1673   memset(&full_ret[16+payload_size], '\0', i_epad*16);
     1673  memset(&full_ret[16+payload_size], 0, i_epad*16);
    16741674
    16751675  /* rewrite header
Note: See TracChangeset for help on using the changeset viewer.