svn commit: samba r18456 - in branches/SAMBA_4_0/source/lib/replace: .

metze at samba.org metze at samba.org
Wed Sep 13 10:12:03 GMT 2006


Author: metze
Date: 2006-09-13 10:12:03 +0000 (Wed, 13 Sep 2006)
New Revision: 18456

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18456

Log:
Tru64 doesn't have getdents() so we don't need this ifdef's...

metze
Modified:
   branches/SAMBA_4_0/source/lib/replace/repdir_getdents.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/repdir_getdents.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/repdir_getdents.c	2006-09-13 10:10:20 UTC (rev 18455)
+++ branches/SAMBA_4_0/source/lib/replace/repdir_getdents.c	2006-09-13 10:12:03 UTC (rev 18456)
@@ -118,11 +118,7 @@
 	return d->seekpos + d->ofs;
 }
 
-#ifdef _OSF_SOURCE
-int seekdir(DIR *dir, long ofs)
-#else
 void seekdir(DIR *dir, long ofs)
-#endif
 {
 	struct dir_buf *d = (struct dir_buf *)dir;
 	d->seekpos = lseek(d->fd, ofs & ~(DIR_BUF_SIZE-1), SEEK_SET);
@@ -131,9 +127,6 @@
 	while (d->ofs < (ofs & (DIR_BUF_SIZE-1))) {
 		if (readdir(dir) == NULL) break;
 	}
-#ifdef _OSF_SOURCE
-	return -1;
-#endif
 }
 
 void rewinddir(DIR *dir)



More information about the samba-cvs mailing list