warning fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3838 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2001-12-28 18:03:03 +00:00
parent f0f34e3c51
commit 97699024c9
1 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,11 @@
CpuCaps gCpuCaps;
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <stdlib.h>
#ifdef ARCH_X86
#include <stdio.h>
@ -93,7 +98,8 @@ void GetCpuCaps( CpuCaps *caps)
return;
}
do_cpuid(0x00000000, regs); // get _max_ cpuid level and vendor name
printf("CPU vendor name: %.4s%.4s%.4s max cpuid level: %d\n",&regs[1],&regs[3],&regs[2],regs[0]);
printf("CPU vendor name: %.4s%.4s%.4s max cpuid level: %d\n",
(char*) (regs+1),(char*) (regs+3),(char*) (regs+2), regs[0]);
if (regs[0]>=0x00000001)
{
char *tmpstr;
@ -173,7 +179,7 @@ char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]){
exit(1);
}
sprintf(vendor,"%.4s%.4s%.4s",&regs[1],&regs[3],&regs[2]);
sprintf(vendor,"%.4s%.4s%.4s",(char*)(regs+1),(char*)(regs+3),(char*)(regs+2));
for(i=0; i<MAX_VENDORS; i++){
if(!strcmp(cpuvendors[i].string,vendor)){