diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-18 11:14:24 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-23 08:31:33 -0500 |
commit | 01171ddb20034578c616d0ba07f0268ab71809da (patch) | |
tree | 7cc945c4d21115ff16fd1ea0689f1158eb290b62 /src/responder | |
parent | 355fe74d2eaab2e021d75437a6b997fd24b9c4e5 (diff) | |
download | sssd-01171ddb20034578c616d0ba07f0268ab71809da.tar.gz sssd-01171ddb20034578c616d0ba07f0268ab71809da.tar.bz2 sssd-01171ddb20034578c616d0ba07f0268ab71809da.zip |
Move sized_string declaration to utils
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/nss/nsssrv.h | 8 | ||||
-rw-r--r-- | src/responder/nss/nsssrv_cmd.c | 11 |
2 files changed, 0 insertions, 19 deletions
diff --git a/src/responder/nss/nsssrv.h b/src/responder/nss/nsssrv.h index 5e365d7b..01a2810c 100644 --- a/src/responder/nss/nsssrv.h +++ b/src/responder/nss/nsssrv.h @@ -71,12 +71,4 @@ int nss_cmd_execute(struct cli_ctx *cctx); struct sss_cmd_table *get_nss_cmds(void); -/* len includes terminating '\0' */ -struct sized_string { - const char *str; - size_t len; -}; - -void to_sized_string(struct sized_string *out, const char *in); - #endif /* __NSSSRV_H__ */ diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index e3420fa2..4b5f6784 100644 --- a/src/responder/nss/nsssrv_cmd.c +++ b/src/responder/nss/nsssrv_cmd.c @@ -28,17 +28,6 @@ #include "db/sysdb.h" #include <time.h> -/* out->len includes terminating '\0' */ -void to_sized_string(struct sized_string *out, const char *in) -{ - out->str = in; - if (out->str) { - out->len = strlen(out->str) + 1; - } else { - out->len = 0; - } -} - static int nss_cmd_send_error(struct nss_cmd_ctx *cmdctx, int err) { struct cli_ctx *cctx = cmdctx->cctx; |