Revision 3671757546ce78bb04611aa5481c2aa77a1ffc90 authored by Steve Hoelzer on 07 August 2007, 17:38:29 UTC, committed by Junio C Hamano on 07 August 2007, 20:49:33 UTC
Signed-off-by: Steve Hoelzer <shoelzer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e2c6de1
hstrerror.c
#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";
}
sprintf(buffer, "Name resolution error %d", err);
return buffer;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...