mirror of
https://github.com/samba-team/samba.git
synced 2025-01-01 21:18:10 +03:00
r19016: As per Samba4 coding standards, turn tabs into spaces
This commit is contained in:
parent
685304e574
commit
3f59c8ef0c
@ -80,16 +80,16 @@ DIR *opendir(const char *dname)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (fstat(d->fd, &sb) < 0) {
|
if (fstat(d->fd, &sb) < 0) {
|
||||||
close(d->fd);
|
close(d->fd);
|
||||||
free(d);
|
free(d);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (!S_ISDIR(sb.st_mode)) {
|
if (!S_ISDIR(sb.st_mode)) {
|
||||||
close(d->fd);
|
close(d->fd);
|
||||||
free(d);
|
free(d);
|
||||||
errno = ENOTDIR;
|
errno = ENOTDIR;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
d->ofs = 0;
|
d->ofs = 0;
|
||||||
d->seekpos = 0;
|
d->seekpos = 0;
|
||||||
d->nbytes = 0;
|
d->nbytes = 0;
|
||||||
|
@ -82,16 +82,16 @@ DIR *opendir(const char *dname)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (fstat(d->fd, &sb) < 0) {
|
if (fstat(d->fd, &sb) < 0) {
|
||||||
close(d->fd);
|
close(d->fd);
|
||||||
free(d);
|
free(d);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (!S_ISDIR(sb.st_mode)) {
|
if (!S_ISDIR(sb.st_mode)) {
|
||||||
close(d->fd);
|
close(d->fd);
|
||||||
free(d);
|
free(d);
|
||||||
errno = ENOTDIR;
|
errno = ENOTDIR;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
d->ofs = 0;
|
d->ofs = 0;
|
||||||
d->seekpos = 0;
|
d->seekpos = 0;
|
||||||
d->nbytes = 0;
|
d->nbytes = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user