summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-02-25 09:55:53 +0100
committerVolker Lendecke <vl@samba.org>2008-02-25 09:55:53 +0100
commitc7522804a57e839334e8165c8a2f14d1948ff450 (patch)
treed442c8490955838d264ec83e3faf18312f2f7027 /source3
parent90ad42fad3b59384953faff30925affb32677e03 (diff)
downloadsamba-c7522804a57e839334e8165c8a2f14d1948ff450.tar.gz
samba-c7522804a57e839334e8165c8a2f14d1948ff450.tar.bz2
samba-c7522804a57e839334e8165c8a2f14d1948ff450.zip
Do the formatting change in all 3 places :-)
(This used to be commit d32066eaef1d09ec41fd5365e18eacd93e485d53)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/mount.cifs.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
index c68c9ee7f7..e73d90859c 100644
--- a/source3/client/mount.cifs.c
+++ b/source3/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");