[Mplayer-cvslog] CVS: main cpudetect.c,1.13,1.14
pl
pl at mplayer.dev.hu
Fri Dec 28 19:03:06 CET 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv27945
Modified Files:
cpudetect.c
Log Message:
warning fix
Index: cpudetect.c
===================================================================
RCS file: /cvsroot/mplayer/main/cpudetect.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- cpudetect.c 24 Dec 2001 10:35:42 -0000 1.13
+++ cpudetect.c 28 Dec 2001 18:03:03 -0000 1.14
@@ -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 @@
return;
}
do_cpuid(0x00000000, regs); // get _max_ cpuid level and vendor name
- printf("CPU vendor name: %.4s%.4s%.4s max cpuid level: %d\n",®s[1],®s[3],®s[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 @@
exit(1);
}
- sprintf(vendor,"%.4s%.4s%.4s",®s[1],®s[3],®s[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)){
More information about the MPlayer-cvslog
mailing list