diff options
author | unknown <joerg@trift2.> | 2008-02-05 15:24:41 +0100 |
---|---|---|
committer | unknown <joerg@trift2.> | 2008-02-05 15:24:41 +0100 |
commit | b38d88b23e5ee7ea56e4fc5f280386051b696a86 (patch) | |
tree | 373a6360c64b377f87799dc0dd9edab9955da857 /storage/ndb | |
parent | 4f5658cb0b32504a44a7e24bc43853c7248154e6 (diff) | |
download | mariadb-git-b38d88b23e5ee7ea56e4fc5f280386051b696a86.tar.gz |
ndb_version.h.in : Fix a syntax error (variable declaration came too late).
storage/ndb/include/ndb_version.h.in:
C syntax requires variable declarations to be before executable statements.
Diffstat (limited to 'storage/ndb')
-rw-r--r-- | storage/ndb/include/ndb_version.h.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/ndb/include/ndb_version.h.in b/storage/ndb/include/ndb_version.h.in index 6a479433b3b..97072315521 100644 --- a/storage/ndb/include/ndb_version.h.in +++ b/storage/ndb/include/ndb_version.h.in @@ -103,11 +103,12 @@ inline int ndb_check_prep_copy_frag_version(Uint32 version) { + const Uint32 major = (version >> 16) & 0xFF; + const Uint32 minor = (version >> 8) & 0xFF; + if (version == NDB_VERSION_D) return 2; - const Uint32 major = (version >> 16) & 0xFF; - const Uint32 minor = (version >> 8) & 0xFF; if (major >= 6) { if (minor == 2) |