about summary refs log tree commit diff
path: root/third_party/git/compat/hstrerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/compat/hstrerror.c')
-rw-r--r--third_party/git/compat/hstrerror.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/third_party/git/compat/hstrerror.c b/third_party/git/compat/hstrerror.c
deleted file mode 100644
index b85a2fa9561f..000000000000
--- a/third_party/git/compat/hstrerror.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <string.h>
-#include <stdio.h>
-#include <netdb.h>
-
-const char *githstrerror(int err)
-{
-	static char buffer[48];
-	switch (err)
-	{
-	case HOST_NOT_FOUND:
-		return "Authoritative answer: host not found";
-	case NO_DATA:
-		return "Valid name, no data record of requested type";
-	case NO_RECOVERY:
-		return "Non recoverable errors, FORMERR, REFUSED, NOTIMP";
-	case TRY_AGAIN:
-		return "Non-authoritative \"host not found\", or SERVERFAIL";
-	}
-	snprintf(buffer, sizeof(buffer), "Name resolution error %d", err);
-	return buffer;
-}