blob: 9bf1eb6c3e944daf3074ef0c797c94aa7f609c37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <nss.h>
#include "nslcd-client.h"
#include "common.h"
/* translates a nsklcd return code (as defined in nslcd.h) to
a nss code (as defined in nss.h) */
enum nss_status nslcd2nss(int code)
{
switch (code)
{
case NSLCD_RS_UNAVAIL: return NSS_STATUS_UNAVAIL;
case NSLCD_RS_NOTFOUND: return NSS_STATUS_NOTFOUND;
case NSLCD_RS_SUCCESS: return NSS_STATUS_SUCCESS;
default: return NSS_STATUS_UNAVAIL;
}
}
|