svn commit: samba r3238 - in branches/SAMBA_4_0/source/lib: .

tridge at samba.org tridge at samba.org
Tue Oct 26 05:35:27 GMT 2004


Author: tridge
Date: 2004-10-26 05:35:26 +0000 (Tue, 26 Oct 2004)
New Revision: 3238

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib&rev=3238&nolog=1

Log:
rename null_mtime() to the more accurate name "null_time()", and
expose it for use by the posix backend


Modified:
   branches/SAMBA_4_0/source/lib/time.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/time.c
===================================================================
--- branches/SAMBA_4_0/source/lib/time.c	2004-10-26 05:34:35 UTC (rev 3237)
+++ branches/SAMBA_4_0/source/lib/time.c	2004-10-26 05:35:26 UTC (rev 3238)
@@ -102,13 +102,13 @@
 
 
 /****************************************************************************
-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 @@
 ********************************************************************/
 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_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;



More information about the samba-cvs mailing list