Make lots of generic data parameters into 'void *'.
This is a cleanup I started to notice a need for during the BinarySink work. It removes a lot of faffing about casting things to char * or unsigned char * so that some API will accept them, even though lots of such APIs really take a plain 'block of raw binary data' argument and don't care what C thinks the signedness of that data might be - they may well reinterpret it back and forth internally. So I've tried to arrange for all the function call APIs that ought to have a void * (or const void *) to have one, and those that need to do pointer arithmetic on the parameter internally can cast it back at the top of the function. That saves endless ad-hoc casts at the call sites.
Showing
- contrib/cygtermd/telnet.c 3 additions, 3 deletionscontrib/cygtermd/telnet.c
- cproxy.c 1 addition, 1 deletioncproxy.c
- fuzzterm.c 2 additions, 2 deletionsfuzzterm.c
- import.c 4 additions, 6 deletionsimport.c
- ldisc.c 4 additions, 3 deletionsldisc.c
- network.h 2 additions, 2 deletionsnetwork.h
- pageant.c 1 addition, 1 deletionpageant.c
- portfwd.c 4 additions, 4 deletionsportfwd.c
- proxy.c 2 additions, 2 deletionsproxy.c
- pscp.c 12 additions, 12 deletionspscp.c
- psftp.c 2 additions, 2 deletionspsftp.c
- putty.h 5 additions, 5 deletionsputty.h
- raw.c 1 addition, 1 deletionraw.c
- rlogin.c 1 addition, 1 deletionrlogin.c
- sftp.c 1 addition, 1 deletionsftp.c
- sftp.h 1 addition, 1 deletionsftp.h
- ssh.c 8 additions, 7 deletionsssh.c
- ssh.h 37 additions, 41 deletionsssh.h
- sshaes.c 23 additions, 20 deletionssshaes.c
- ssharcf.c 5 additions, 4 deletionsssharcf.c
Loading
Please register or sign in to comment