summaryrefslogtreecommitdiffstats
path: root/src/account/macros.h
diff options
context:
space:
mode:
authorRoman Rakus <rrakus@redhat.com>2012-10-25 14:12:41 +0200
committerRoman Rakus <rrakus@redhat.com>2012-10-25 14:20:13 +0200
commit7a3aa00503496f4ee5e45f71bc42468b22f5ac78 (patch)
tree7bfce72c7ee697091fb3c4dd0e64c3a286654ea1 /src/account/macros.h
parentd6e8232c056b2e7b2bb8dd5d955072cca10bd13d (diff)
downloadopenlmi-providers-7a3aa00503496f4ee5e45f71bc42468b22f5ac78.tar.gz
openlmi-providers-7a3aa00503496f4ee5e45f71bc42468b22f5ac78.tar.xz
openlmi-providers-7a3aa00503496f4ee5e45f71bc42468b22f5ac78.zip
Account: Account modification of password expirations0.0.12
Signed-off-by: Roman Rakus <rrakus@redhat.com>
Diffstat (limited to 'src/account/macros.h')
-rw-r--r--src/account/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/account/macros.h b/src/account/macros.h
index 9428c86..1e33aa9 100644
--- a/src/account/macros.h
+++ b/src/account/macros.h
@@ -11,5 +11,7 @@
/* convert days to microseconds */
#define DAYSTOMS(days) ((days) * 86400000000)
+#define MSTODAYS(ms) ((ms) / 86400000000)
+#define STOMS(s) ((s) * 1000000)
#endif