[SCM] Samba Shared Repository - branch master updated - 5018fef8cb9573077a8d41150e12d962478b9831

Jelmer Vernooij jelmer at samba.org
Wed Oct 22 02:06:02 GMT 2008


The branch, master has been updated
       via  5018fef8cb9573077a8d41150e12d962478b9831 (commit)
       via  e16e6e9cb0c30e84edda99328f1b3eb0c7f428f2 (commit)
      from  4e9db0b1004aedf9eef69b9361ed6d9e69897a1e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 5018fef8cb9573077a8d41150e12d962478b9831
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Wed Oct 22 04:05:22 2008 +0200

    Fix path for quicktest.

commit e16e6e9cb0c30e84edda99328f1b3eb0c7f428f2
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Wed Oct 22 03:41:24 2008 +0200

    Use standard types.

-----------------------------------------------------------------------

Summary of changes:
 selftest/selftest.pl    |    2 +-
 source3/lib/time.c      |   32 ++++++++++++++++----------------
 source3/passdb/passdb.c |   16 ++++++++--------
 3 files changed, 25 insertions(+), 25 deletions(-)


Changeset truncated at 500 lines:

diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index 96b58cc..6f9a723 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -519,7 +519,7 @@ foreach (@opt_exclude) {
 }
 
 if ($opt_quick) {
-	push (@includes, read_test_regexes("samba4-quick"));
+	push (@includes, read_test_regexes("selftest/quick"));
 }
 
 foreach (@opt_include) {
diff --git a/source3/lib/time.c b/source3/lib/time.c
index c4aa7d0..db2266f 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -105,7 +105,7 @@ NTTIME nttime_from_string(const char *s)
  preserve the "special" values.
 **************************************************************/
 
-uint32 convert_time_t_to_uint32(time_t t)
+uint32_t convert_time_t_to_uint32(time_t t)
 {
 #if (defined(SIZEOF_TIME_T) && (SIZEOF_TIME_T == 8))
 	/* time_t is 64-bit. */
@@ -115,10 +115,10 @@ uint32 convert_time_t_to_uint32(time_t t)
 		return 0x7FFFFFFF;
 	}
 #endif
-	return (uint32)t;
+	return (uint32_t)t;
 }
 
-time_t convert_uint32_to_time_t(uint32 u)
+time_t convert_uint32_to_time_t(uint32_t u)
 {
 #if (defined(SIZEOF_TIME_T) && (SIZEOF_TIME_T == 8))
 	/* time_t is 64-bit. */
@@ -253,7 +253,7 @@ char *current_timestring(TALLOC_CTX *ctx, bool hires)
 
 static void put_dos_date(char *buf,int offset,time_t unixdate, int zone_offset)
 {
-	uint32 x = make_dos_date(unixdate, zone_offset);
+	uint32_t x = make_dos_date(unixdate, zone_offset);
 	SIVAL(buf,offset,x);
 }
 
@@ -264,7 +264,7 @@ static void put_dos_date(char *buf,int offset,time_t unixdate, int zone_offset)
 
 static void put_dos_date2(char *buf,int offset,time_t unixdate, int zone_offset)
 {
-	uint32 x = make_dos_date(unixdate, zone_offset);
+	uint32_t x = make_dos_date(unixdate, zone_offset);
 	x = ((x&0xFFFF)<<16) | ((x&0xFFFF0000)>>16);
 	SIVAL(buf,offset,x);
 }
@@ -522,7 +522,7 @@ void dos_filetime_timespec(struct timespec *tsp)
 
 static time_t make_unix_date(const void *date_ptr, int zone_offset)
 {
-	uint32 dos_date=0;
+	uint32_t dos_date=0;
 	struct tm t;
 	time_t ret;
 
@@ -549,7 +549,7 @@ static time_t make_unix_date(const void *date_ptr, int zone_offset)
 
 static time_t make_unix_date2(const void *date_ptr, int zone_offset)
 {
-	uint32 x,x2;
+	uint32_t x,x2;
 
 	x = IVAL(date_ptr,0);
 	x2 = ((x&0xFFFF)<<16) | ((x&0xFFFF0000)>>16);
@@ -765,13 +765,13 @@ void get_process_uptime(struct timeval *ret_time)
 
 time_t nt_time_to_unix_abs(const NTTIME *nt)
 {
-	uint64 d;
+	uint64_t d;
 
 	if (*nt == 0) {
 		return (time_t)0;
 	}
 
-	if (*nt == (uint64)-1) {
+	if (*nt == (uint64_t)-1) {
 		return (time_t)-1;
 	}
 
@@ -806,7 +806,7 @@ time_t uint64s_nt_time_to_unix_abs(const uint64_t *src)
 
 void unix_timespec_to_nt_time(NTTIME *nt, struct timespec ts)
 {
-	uint64 d;
+	uint64_t d;
 
 	if (ts.tv_sec ==0 && ts.tv_nsec == 0) {
 		*nt = 0;
@@ -817,7 +817,7 @@ void unix_timespec_to_nt_time(NTTIME *nt, struct timespec ts)
 		return;
 	}		
 	if (ts.tv_sec == (time_t)-1) {
-		*nt = (uint64)-1;
+		*nt = (uint64_t)-1;
 		return;
 	}		
 
@@ -875,8 +875,8 @@ void unix_to_nt_time_abs(NTTIME *nt, time_t t)
 bool null_mtime(time_t mtime)
 {
 	if (mtime == 0 || mtime == (time_t)0xFFFFFFFF || mtime == (time_t)-1)
-		return(True);
-	return(False);
+		return true;
+	return false;
 }
 
 /****************************************************************************
@@ -936,12 +936,12 @@ const char *display_time(NTTIME nttime)
 bool nt_time_is_set(const NTTIME *nt)
 {
 	if (*nt == 0x7FFFFFFFFFFFFFFFLL) {
-		return False;
+		return false;
 	}
 
 	if (*nt == NTTIME_INFINITY) {
-		return False;
+		return false;
 	}
 
-	return True;
+	return true;
 }
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index a670b46..6069961 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -259,7 +259,7 @@ NTSTATUS samu_alloc_rid_unix(struct samu *user, const struct passwd *pwd)
  null). length *MUST BE MORE THAN 2* !
  **********************************************************/
 
-char *pdb_encode_acct_ctrl(uint32 acct_ctrl, size_t length)
+char *pdb_encode_acct_ctrl(uint32_t acct_ctrl, size_t length)
 {
 	fstring acct_str;
 	char *result;
@@ -298,10 +298,10 @@ char *pdb_encode_acct_ctrl(uint32 acct_ctrl, size_t length)
  Decode the account control bits from a string.
  **********************************************************/
 
-uint32 pdb_decode_acct_ctrl(const char *p)
+uint32_t pdb_decode_acct_ctrl(const char *p)
 {
-	uint32 acct_ctrl = 0;
-	bool finished = False;
+	uint32_t acct_ctrl = 0;
+	bool finished = false;
 
 	/*
 	 * Check if the account type bits have been encoded after the
@@ -329,7 +329,7 @@ uint32 pdb_decode_acct_ctrl(const char *p)
 			case '\n':
 			case '\0': 
 			case ']':
-			default:  { finished = True; }
+			default:  { finished = true; }
 		}
 	}
 
@@ -367,7 +367,7 @@ bool pdb_gethexpwd(const char *p, unsigned char *pwd)
 	char           *p1, *p2;
 	
 	if (!p)
-		return (False);
+		return false;
 	
 	for (i = 0; i < 32; i += 2) {
 		hinybble = toupper_ascii(p[i]);
@@ -377,14 +377,14 @@ bool pdb_gethexpwd(const char *p, unsigned char *pwd)
 		p2 = strchr(hexchars, lonybble);
 
 		if (!p1 || !p2)
-			return (False);
+			return false;
 
 		hinybble = PTR_DIFF(p1, hexchars);
 		lonybble = PTR_DIFF(p2, hexchars);
 
 		pwd[i / 2] = (hinybble << 4) | lonybble;
 	}
-	return (True);
+	return true;
 }
 
 /*************************************************************


-- 
Samba Shared Repository


More information about the samba-cvs mailing list