diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-11-03 16:54:44 +0100 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2010-11-22 16:01:35 -0500 |
commit | 7086c9e8635a47966a7222e8efa30e873f0c1d95 (patch) | |
tree | 3595ec278b93bd0c93ad428cf43f9ff427bf885a /daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c | |
parent | 110397f05900e81321a18617c6292df7f742eafb (diff) | |
download | freeipa-7086c9e8635a47966a7222e8efa30e873f0c1d95.tar.gz freeipa-7086c9e8635a47966a7222e8efa30e873f0c1d95.tar.xz freeipa-7086c9e8635a47966a7222e8efa30e873f0c1d95.zip |
Silence compilation warnings in SLAPI plugins
Signed-off-by: Simo Sorce <ssorce@redhat.com>
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c')
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c index 44b280bf..281522f6 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_prepost.c @@ -41,8 +41,10 @@ # include <config.h> #endif +#define _XOPEN_SOURCE /* strptime needs this */ #include <stdio.h> #include <string.h> +#include <strings.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> @@ -880,7 +882,6 @@ static int ipapwd_pre_bind(Slapi_PBlock *pb) Slapi_Value *value = NULL; Slapi_Attr *attr = NULL; struct tm expire_tm; - time_t expire_time; char *errMesg = "Internal operations error\n"; /* error message */ char *expire = NULL; /* passwordExpirationTime attribute value */ char *dn = NULL; /* bind DN */ |