Re: [Libtirpc-devel] [PATCH 1/7] des_impl: Use bzero instead of __bzero

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17 Apr 2016 11:10, Felix Janda wrote:
> Fixes compilation error with musl libc:
> 
> .libs/libtirpc_la-des_impl.o: In function `_des_crypt':
> src/des_impl.c:591: undefined reference to `__bzero'
>
> --- a/src/des_impl.c
> +++ b/src/des_impl.c
> @@ -588,7 +588,7 @@ _des_crypt (char *buf, unsigned len, struct desparams *desp)
>      }
>    tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0;
>    tbuf[0] = tbuf[1] = 0;
> -  __bzero (schedule, sizeof (schedule));
> +  bzero (schedule, sizeof (schedule));

might as well convert to memset while you're at it since bzero is deprecated
-mike

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux