memset is more portable than bzero ("BSD"ism)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3701 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2001-12-24 10:35:43 +00:00
parent b8a8282bc7
commit 8ee5b68534
3 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ void GetCpuCaps( CpuCaps *caps)
caps->isX86=1;
bzero(caps, sizeof(*caps));
memset(caps, 0, sizeof(*caps));
if (!has_cpuid()) {
printf("CPUID not supported!???\n");
return;

View File

@ -173,7 +173,7 @@ static int init(int rate_hz, int channels, int format, int flags)
if (info.flags & SND_PCM_INFO_PLAYBACK)
{
bzero(&chninfo, sizeof(chninfo));
memset(&chninfo, 0, sizeof(chninfo));
chninfo.channel = SND_PCM_CHANNEL_PLAYBACK;
if ((err = snd_pcm_channel_info(alsa_handler, &chninfo)) < 0)
{

View File

@ -92,7 +92,7 @@ static int path_to_lba (char *path)
fp=popen(cmd,"r");
if (fp) {
int ret;
bzero(cmd,sizeof(cmd));
memset(cmd,0,sizeof(cmd));
fgets(cmd,99,fp);
if ((ret=pclose(fp)))
fprintf(stderr,"fibmap_mplayer: %s\n",*cmd?cmd:"no error info");
@ -158,7 +158,7 @@ int dvd_import_key ( unsigned char *hexkey )
{
unsigned char *t=key_title;
int digit=4,len;
bzero(key_title,sizeof(key_title));
memset(key_title,0,sizeof(key_title));
// printf("DVD key: %s\n",hexkey);
for (len=0;len<10;len++) {
// printf("-> %c\n",*hexkey);