diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-20 11:14:57 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-20 11:14:57 +0000 |
commit | 746b9acfb6f970f687c5a2c422540f122572389b (patch) | |
tree | 58a33b61a68528538be649244fcb566b3d24c2e6 /cputable.h | |
parent | 690490f7d022887a0d5390b90aabbf1545f43daf (diff) | |
download | mpv-746b9acfb6f970f687c5a2c422540f122572389b.tar.bz2 mpv-746b9acfb6f970f687c5a2c422540f122572389b.tar.xz |
array was not correctly initialized
use of char* since it avoids wasting memory
(4+stringsize bytes instead of 128)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2303 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cputable.h')
-rw-r--r-- | cputable.h | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/cputable.h b/cputable.h index 6b36d28718..0c52fa3069 100644 --- a/cputable.h +++ b/cputable.h @@ -10,7 +10,7 @@ #define N_UNKNOWN "" #define N_UNKNOWNEXT "" -#define M_UNKNOWN { \ +#define F_UNKNOWN { \ N_UNKNOWN, \ N_UNKNOWN, \ N_UNKNOWN, \ @@ -29,30 +29,10 @@ N_UNKNOWN, \ N_UNKNOWN \ } -#define F_UNKNOWN { \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN, \ -M_UNKNOWN \ -} - -static const char cpuname +static const char *cpuname /* Vendor */ [MAX_VENDORS] /* Family */ [16] /* Model */ [16] - /* Name */ [128] ={ /* Intel Corporation, "GenuineIntel" */ { /* 0 */ F_UNKNOWN, @@ -476,7 +456,6 @@ static const char cpuname #undef N_UNKNOWNEXT #undef N_UNKNOWN -#undef M_UNKNOWN #undef F_UNKNOWN static const struct { |