[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-2514-gd32066e

Volker Lendecke vl at samba.org
Mon Feb 25 08:52:25 GMT 2008


The branch, v3-2-test has been updated
       via  d32066eaef1d09ec41fd5365e18eacd93e485d53 (commit)
      from  19de47fef1b35c47885acc40760a232e4643079c (commit)

http://gitweb.samba.org/?samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit d32066eaef1d09ec41fd5365e18eacd93e485d53
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Feb 25 09:55:53 2008 +0100

    Do the formatting change in all 3 places :-)

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

Summary of changes:
 source/client/mount.cifs.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index c68c9ee..e73d908 100644
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -231,8 +231,10 @@ static int open_cred_file(char * file_name)
 				/* go past equals sign */
 				temp_val++;
 				for(length = 0;length<65;length++) {
-					if(temp_val[length] == '\n' || temp_val[length] == '\0')
+					if ((temp_val[length] == '\n')
+					    || (temp_val[length] == '\0')) {
 						break;
+					}
 				}
 				if(length > 64) {
 					printf("mount.cifs failed: password in credentials file too long\n");
@@ -260,8 +262,10 @@ static int open_cred_file(char * file_name)
 				if(verboseflag)
 					printf("\nDomain %s\n",temp_val);
                                 for(length = 0;length<65;length++) {
-                                        if(temp_val[length] == '\n' || temp_val[length] == '\0')
-                                                break;
+					if ((temp_val[length] == '\n')
+					    || (temp_val[length] == '\0')) {
+						break;
+					}
                                 }
                                 if(length > 64) {
                                         printf("mount.cifs failed: domain in credentials file too long\n");


-- 
Samba Shared Repository


More information about the samba-cvs mailing list