(hstrerror): add const to return type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5511 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -80,11 +80,11 @@ extern int h_nerr;
|
||||
|
||||
#endif
|
||||
|
||||
char *
|
||||
const char *
|
||||
hstrerror(int herr)
|
||||
{
|
||||
if (0 <= herr && herr < h_nerr)
|
||||
return (char *) h_errlist[herr];
|
||||
return h_errlist[herr];
|
||||
else if(herr == -17)
|
||||
return "unknown error";
|
||||
else
|
||||
|
Reference in New Issue
Block a user