Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/compat/hstrerror.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / compat / hstrerror.c` 21 lines ยท 530 bytes Raw Blame History 1 #include 2 #include 3 #include 4 5 const char *githstrerror(int err) 6 { 7 static char buffer[48]; 8 switch (err) 9 { 10 case HOST_NOT_FOUND: 11 return "Authoritative answer: host not found"; 12 case NO_DATA: 13 return "Valid name, no data record of requested type"; 14 case NO_RECOVERY: 15 return "Non recoverable errors, FORMERR, REFUSED, NOTIMP"; 16 case TRY_AGAIN: 17 return "Non-authoritative \"host not found\", or SERVERFAIL"; 18 } 19 snprintf(buffer, sizeof(buffer), "Name resolution error %d", err); 20 return buffer; 21 }