Add and use com_err error codes

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22556 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-02-01 16:38:46 +00:00
parent 3ff43c30b9
commit 3ad1f2d308
10 changed files with 61 additions and 51 deletions

View File

@@ -37,6 +37,7 @@
#include "windlocl.h"
#include <stdlib.h>
#include <strings.h>
#include <errno.h>
RCSID("$Id$");
@@ -63,7 +64,7 @@ wind_stringprep(const uint32_t *in, size_t in_len,
int ret;
if (tmp == NULL)
return -1;
return ENOMEM;
ret = _wind_stringprep_map(in, in_len, tmp, &tmp_len, flags);
if (ret) {
@@ -113,5 +114,5 @@ wind_profile(const char *name, wind_profile_flags *flags)
return 0;
}
}
return -1;
return WIND_ERR_NO_PROFILE;
}