Changeset 541 for trunk/src/sh_tools.c
- Timestamp:
- Jan 16, 2019, 11:57:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_tools.c
r539 r541 70 70 #endif 71 71 #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))) 73 73 #endif 74 74 … … 135 135 int res; 136 136 137 memset (&hints, '\0', sizeof (hints));137 memset (&hints, 0, sizeof (hints)); 138 138 hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG; 139 139 hints.ai_socktype = SOCK_STREAM; … … 180 180 int sd; 181 181 182 memset(&sin, '\0', sizeof(sin));182 memset(&sin, 0, sizeof(sin)); 183 183 sin.sin_family = AF_INET; 184 184 if (inet_aton(str, &(sin.sin_addr))) … … 915 915 fputs(_("-03- not cached\n"), stderr); 916 916 917 memset (&hints, '\0', sizeof (hints));917 memset (&hints, 0, sizeof (hints)); 918 918 hints.ai_flags = AI_ADDRCONFIG; 919 919 #if defined(AI_CANONNAME) … … 1668 1668 if ((i_blk*16) > payload_size && !oflow) 1669 1669 { 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); 1671 1671 payload_size = i_blk * 16; 1672 1672 } 1673 memset(&full_ret[16+payload_size], '\0', i_epad*16);1673 memset(&full_ret[16+payload_size], 0, i_epad*16); 1674 1674 1675 1675 /* rewrite header
Note:
See TracChangeset
for help on using the changeset viewer.