Changeset bba6a4b72614…
Parent 8f033331c7ce…
by
Changes to one file · Browse files at bba6a4b72614 Showing diff from parent 8f033331c7ce Diff from another changeset...
@@ -202,21 +202,6 @@ }
-static char *revhash_string(const char revhash[HASH_LENGTH])
-{
- unsigned ix;
- static char rev_string[HASH_LENGTH * 2 + 1];
- static char *hexval = "0123456789abcdef";
- for (ix = 0; ix < HASH_LENGTH; ++ix)
- {
- rev_string[ix * 2] = hexval[(revhash[ix] >> 4) & 0xf];
- rev_string[ix * 2 + 1] = hexval[revhash[ix] & 0xf];
- }
- rev_string[sizeof(rev_string)] = 0;
- return rev_string;
-}
-
-
char mapdirstate(const direntry* entry, const struct _stat* stat)
{
switch (entry->state)
@@ -362,6 +347,21 @@}
+static char *revhash_string(const char revhash[HASH_LENGTH])
+{
+ unsigned ix;
+ static char rev_string[HASH_LENGTH * 2 + 1];
+ static char *hexval = "0123456789abcdef";
+ for (ix = 0; ix < HASH_LENGTH; ++ix)
+ {
+ rev_string[ix * 2] = hexval[(revhash[ix] >> 4) & 0xf];
+ rev_string[ix * 2 + 1] = hexval[revhash[ix] & 0xf];
+ }
+ rev_string[sizeof(rev_string)] = 0;
+ return rev_string;
+}
+
+
#if 0
int main(int argc, char *argv[])
{
|
Loading...