diff options
author | Steve French <sfrench@us.ibm.com> | 2007-07-07 15:25:05 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-07-07 15:25:05 -0400 |
commit | 790fe579f5006b72dfd2814f9263a73b0b455e81 (patch) | |
tree | 8d0749bb66bcd8993ae66101c6706e0ba432e155 /fs/cifs/netmisc.c | |
parent | 6dc0f87e351142e224b396f29b59527c4b2d834c (diff) |
[CIFS] more whitespace cleanup
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/netmisc.c')
-rw-r--r-- | fs/cifs/netmisc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index b388c356fde0..20a3fe7cbd7b 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c | |||
@@ -140,9 +140,9 @@ cifs_inet_pton(int address_family, char *cp,void *dst) | |||
140 | /* calculate length by finding first slash or NULL */ | 140 | /* calculate length by finding first slash or NULL */ |
141 | /* BB Should we convert '/' slash to '\' here since it seems already done | 141 | /* BB Should we convert '/' slash to '\' here since it seems already done |
142 | before this */ | 142 | before this */ |
143 | if( address_family == AF_INET ){ | 143 | if ( address_family == AF_INET ) { |
144 | ret = in4_pton(cp, -1 /* len */, dst , '\\', NULL); | 144 | ret = in4_pton(cp, -1 /* len */, dst , '\\', NULL); |
145 | } else if( address_family == AF_INET6 ){ | 145 | } else if ( address_family == AF_INET6 ) { |
146 | ret = in6_pton(cp, -1 /* len */, dst , '\\', NULL); | 146 | ret = in6_pton(cp, -1 /* len */, dst , '\\', NULL); |
147 | } | 147 | } |
148 | #ifdef CONFIG_CIFS_DEBUG2 | 148 | #ifdef CONFIG_CIFS_DEBUG2 |
@@ -773,7 +773,7 @@ map_smb_to_linux_error(struct smb_hdr *smb) | |||
773 | if (smb->Flags2 & SMBFLG2_ERR_STATUS) { | 773 | if (smb->Flags2 & SMBFLG2_ERR_STATUS) { |
774 | /* translate the newer STATUS codes to old style errors and then to POSIX errors */ | 774 | /* translate the newer STATUS codes to old style errors and then to POSIX errors */ |
775 | __u32 err = le32_to_cpu(smb->Status.CifsError); | 775 | __u32 err = le32_to_cpu(smb->Status.CifsError); |
776 | if(cifsFYI & CIFS_RC) | 776 | if (cifsFYI & CIFS_RC) |
777 | cifs_print_status(err); | 777 | cifs_print_status(err); |
778 | ntstatus_to_dos(err, &smberrclass, &smberrcode); | 778 | ntstatus_to_dos(err, &smberrclass, &smberrcode); |
779 | } else { | 779 | } else { |
@@ -889,15 +889,15 @@ struct timespec cnvrtDosUnixTm(__u16 date, __u16 time) | |||
889 | 889 | ||
890 | sec = 2 * st->TwoSeconds; | 890 | sec = 2 * st->TwoSeconds; |
891 | min = st->Minutes; | 891 | min = st->Minutes; |
892 | if((sec > 59) || (min > 59)) | 892 | if ((sec > 59) || (min > 59)) |
893 | cERROR(1,("illegal time min %d sec %d", min, sec)); | 893 | cERROR(1,("illegal time min %d sec %d", min, sec)); |
894 | sec += (min * 60); | 894 | sec += (min * 60); |
895 | sec += 60 * 60 * st->Hours; | 895 | sec += 60 * 60 * st->Hours; |
896 | if(st->Hours > 24) | 896 | if (st->Hours > 24) |
897 | cERROR(1,("illegal hours %d",st->Hours)); | 897 | cERROR(1,("illegal hours %d",st->Hours)); |
898 | days = sd->Day; | 898 | days = sd->Day; |
899 | month = sd->Month; | 899 | month = sd->Month; |
900 | if((days > 31) || (month > 12)) | 900 | if ((days > 31) || (month > 12)) |
901 | cERROR(1,("illegal date, month %d day: %d", month, days)); | 901 | cERROR(1,("illegal date, month %d day: %d", month, days)); |
902 | month -= 1; | 902 | month -= 1; |
903 | days += total_days_of_prev_months[month]; | 903 | days += total_days_of_prev_months[month]; |
@@ -911,13 +911,13 @@ struct timespec cnvrtDosUnixTm(__u16 date, __u16 time) | |||
911 | consider 2 special case years, ie the years 2000 and 2100, and only | 911 | consider 2 special case years, ie the years 2000 and 2100, and only |
912 | adjust for the lack of leap year for the year 2100, as 2000 was a | 912 | adjust for the lack of leap year for the year 2100, as 2000 was a |
913 | leap year (divisable by 400) */ | 913 | leap year (divisable by 400) */ |
914 | if(year >= 120) /* the year 2100 */ | 914 | if (year >= 120) /* the year 2100 */ |
915 | days = days - 1; /* do not count leap year for the year 2100 */ | 915 | days = days - 1; /* do not count leap year for the year 2100 */ |
916 | 916 | ||
917 | /* adjust for leap year where we are still before leap day */ | 917 | /* adjust for leap year where we are still before leap day */ |
918 | if(year != 120) | 918 | if (year != 120) |
919 | days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); | 919 | days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); |
920 | sec += 24 * 60 * 60 * days; | 920 | sec += 24 * 60 * 60 * days; |
921 | 921 | ||
922 | ts.tv_sec = sec; | 922 | ts.tv_sec = sec; |
923 | 923 | ||