]> granicus.if.org Git - openssl/commit
memset, memcpy, sizeof consistency fixes
authorRich Salz <rsalz@akamai.com>
Mon, 4 May 2015 22:00:15 +0000 (18:00 -0400)
committerRich Salz <rsalz@openssl.org>
Wed, 6 May 2015 02:18:59 +0000 (22:18 -0400)
commit16f8d4ebf0fd4847fa83d9c61f4150273cb4f533
tree3c30094cad38433c24008c30efe3d93cf38d8ae9
parent12048657a91b12e499d03ec9ff406b42aba67366
memset, memcpy, sizeof consistency fixes

Just as with the OPENSSL_malloc calls, consistently use sizeof(*ptr)
for memset and memcpy.  Remove needless casts for those functions.
For memset, replace alternative forms of zero with 0.

Reviewed-by: Richard Levitte <levitte@openssl.org>
76 files changed:
apps/opt.c
apps/s_apps.h
apps/s_socket.c
crypto/LPdir_unix.c
crypto/LPdir_vms.c
crypto/LPdir_win.c
crypto/asn1/a_enum.c
crypto/asn1/a_int.c
crypto/asn1/a_verify.c
crypto/asn1/ameth_lib.c
crypto/bio/b_sock.c
crypto/bio/bss_acpt.c
crypto/bio/bss_conn.c
crypto/bio/bss_dgram.c
crypto/bn/bn_blind.c
crypto/bn/bn_intern.c
crypto/bn/bn_lcl.h
crypto/bn/bn_lib.c
crypto/bn/bn_mont.c
crypto/bn/bn_mul.c
crypto/bn/bn_shift.c
crypto/bn/bn_sqr.c
crypto/comp/comp_lib.c
crypto/dso/dso_lib.c
crypto/dso/dso_win32.c
crypto/ec/ecp_nistp224.c
crypto/ec/ecp_nistp256.c
crypto/ec/ecp_nistp521.c
crypto/engine/eng_cryptodev.c
crypto/engine/eng_dyn.c
crypto/engine/eng_lib.c
crypto/evp/bio_ok.c
crypto/evp/digest.c
crypto/evp/e_null.c
crypto/evp/evp_enc.c
crypto/evp/pmeth_lib.c
crypto/jpake/jpake.c
crypto/md2/md2_dgst.c
crypto/modes/ocb128.c
crypto/pqueue/pqueue.c
crypto/rsa/rsa_lib.c
crypto/sha/sha512.c
crypto/stack/stack.c
crypto/store/str_mem.c
crypto/ts/ts_rsp_sign.c
crypto/ts/ts_verify_ctx.c
crypto/ui/ui_openssl.c
crypto/x509/x509_vfy.c
crypto/x509v3/pcy_tree.c
demos/engines/ibmca/hw_ibmca.c
demos/ssl/cli.cpp
demos/ssl/serv.cpp
demos/state_machine/state_machine.c
engines/ccgost/gost_pmeth.c
engines/ccgost/gosthash.c
engines/e_atalla.c
engines/e_padlock.c
ssl/bio_ssl.c
ssl/d1_both.c
ssl/d1_lib.c
ssl/d1_msg.c
ssl/kssl.c
ssl/record/rec_layer_d1.c
ssl/record/rec_layer_s3.c
ssl/s3_clnt.c
ssl/s3_enc.c
ssl/s3_srvr.c
ssl/ssl_cert.c
ssl/ssl_ciph.c
ssl/ssl_lib.c
ssl/ssl_sess.c
ssl/t1_ext.c
test/bftest.c
test/enginetest.c
test/heartbeat_test.c
test/rc4test.c