Do the formatting change in all 3 places :-)
authorVolker Lendecke <vl@samba.org>
Mon, 25 Feb 2008 08:55:53 +0000 (09:55 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 25 Feb 2008 08:55:53 +0000 (09:55 +0100)
source/client/mount.cifs.c

index c68c9ee7f767378c1aca50c4ea1e4fdebb4659f9..e73d90859caf740d0349acd0934237f8d202cc95 100644 (file)
@@ -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");