Brent Cook wrote: > Why not just make the variable type match the return type to begin with?
sure, that's reasonable. > > --- a/src/lib/libtls/tls_util.c > +++ b/src/lib/libtls/tls_util.c > @@ -105,7 +105,8 @@ tls_load_file(const char *name, size_t *len, char > *password) > FILE *fp; > EVP_PKEY *key = NULL; > BIO *bio = NULL; > - char *data, *buf = NULL; > + char *data; > + uint8_t *buf = NULL; > struct stat st; > size_t size; > int fd = -1;