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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user