Change L_SET to SEEK_SET for POSIX compliance.

Submitted by:	Dean Gaudet <dgaudet@arctic.org>
This commit is contained in:
John Polstra 1997-10-26 00:41:51 +00:00
parent 3673dc01e7
commit 11ea2762eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30713

View File

@ -241,7 +241,7 @@ getent(cap, len, db_array, fd, name, depth, nfield)
*/
if (fd >= 0) {
(void)lseek(fd, (off_t)0, L_SET);
(void)lseek(fd, (off_t)0, SEEK_SET);
myfd = 0;
} else {
(void)snprintf(pbuf, sizeof(pbuf), "%s.db", *db_p);