1
0
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:
Volker Lendecke 2006-10-01 20:43:16 +00:00 committed by Gerald (Jerry) Carter
parent 685304e574
commit 3f59c8ef0c
2 changed files with 20 additions and 20 deletions

View File

@ -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;

View File

@ -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;