mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-24 10:44:53 +00:00
Change L_SET to SEEK_SET for POSIX compliance.
Submitted by: Dean Gaudet <dgaudet@arctic.org>
This commit is contained in:
parent
3673dc01e7
commit
11ea2762eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30713
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue