author | Junio C Hamano <junkio@cox.net> | |
Sat, 16 Apr 2005 15:30:20 +0000 (08:30 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sat, 16 Apr 2005 15:30:20 +0000 (08:30 -0700) | ||
commit | fcf712e60e3221a7971cb2ad89e61c565172f524 | |
tree | a4944100a4832f8fce1494e2e8cbea74e349f731 | tree | snapshot |
parent | d99082e0e3436f5fcf259aa1a4189473f6bb5ce3 | commit | diff |
[PATCH] Byteorder fix for read-tree, new -m semantics version.
The ce_namelen field has been renamed to ce_flags and split into
the top 2-bit unused, next 2-bit stage number and the lowest
12-bit name-length, stored in the network byte order. A new
macro create_ce_flags() is defined to synthesize this value from
length and stage, but it forgets to turn the value into the
network byte order. Here is a fix.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
The ce_namelen field has been renamed to ce_flags and split into
the top 2-bit unused, next 2-bit stage number and the lowest
12-bit name-length, stored in the network byte order. A new
macro create_ce_flags() is defined to synthesize this value from
length and stage, but it forgets to turn the value into the
network byte order. Here is a fix.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
cache.h | diff | blob | history |