summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-26 05:35:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:44 -0500
commit0b6c611b11d2307490413e030959aef0cd2ab1ed (patch)
tree7daee5907b6f2f1befd4981fd5cba7d10cfa26e9 /source4/lib
parentfef66179dd5a7c3498f23a79a43de9632f02648b (diff)
downloadsamba-0b6c611b11d2307490413e030959aef0cd2ab1ed.tar.gz
samba-0b6c611b11d2307490413e030959aef0cd2ab1ed.tar.bz2
samba-0b6c611b11d2307490413e030959aef0cd2ab1ed.zip
r3238: rename null_mtime() to the more accurate name "null_time()", and
expose it for use by the posix backend (This used to be commit 687633b5d68c8f883a4d9cdd92c660dabc5d7cfa)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/time.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/lib/time.c b/source4/lib/time.c
index 3ca7be5540..eae30f581b 100644
--- a/source4/lib/time.c
+++ b/source4/lib/time.c
@@ -102,13 +102,13 @@ void unix_to_nt_time(NTTIME *nt, time_t t)
/****************************************************************************
-check if it's a null mtime
+check if it's a null unix time
****************************************************************************/
-static BOOL null_mtime(time_t mtime)
+BOOL null_time(time_t t)
{
- return mtime == 0 ||
- mtime == (time_t)0xFFFFFFFF ||
- mtime == (time_t)-1;
+ return t == 0 ||
+ t == (time_t)0xFFFFFFFF ||
+ t == (time_t)-1;
}
/*******************************************************************
@@ -188,7 +188,7 @@ localtime for this sort of date)
********************************************************************/
void push_dos_date3(char *buf,int offset,time_t unixdate, int zone_offset)
{
- if (!null_mtime(unixdate)) {
+ if (!null_time(unixdate)) {
unixdate -= zone_offset;
}
SIVAL(buf,offset,unixdate);
@@ -258,7 +258,7 @@ time_t pull_dos_date2(const uint8_t *date_ptr, int zone_offset)
time_t pull_dos_date3(const uint8_t *date_ptr, int zone_offset)
{
time_t t = (time_t)IVAL(date_ptr,0);
- if (!null_mtime(t)) {
+ if (!null_time(t)) {
t += zone_offset;
}
return t;