Skip to contentSkip to conversation

use symbolic name as return value

PATCH New Uwe Zeisberger 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 use symbolic name as return value

---

 sha1_name.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

9acfd0a5f5390460d3de7d3f04610b795f8e69dc

sha1_name.c +1 -1
index b95ef05..ba0747c 100644
@@ -143,7 +143,7 @@ static int find_unique_short_object(int 
 	}
 	/* Both have unique ones -- do they match? */
 	if (memcmp(packed_sha1, unpacked_sha1, 20))
-		return -2;
+		return SHORT_NAME_AMBIGUOUS;
 	memcpy(sha1, packed_sha1, 20);
 	return 0;
 }
Signature · 7 lines
1.1.4.g3e6c

-- 
Uwe Zeisberger

Set the I_WANT_A_BROKEN_PS environment variable to force BSD syntax ...
	-- manpage of procps