L_SET -> SEEK_SET

Obtained from:	OpenBSD
This commit is contained in:
Kris Kennaway 2000-11-19 10:56:14 +00:00
parent b601f693db
commit e10471bbba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68895

View File

@ -458,7 +458,7 @@ SendReadRepl(rconn)
* Position read head on file according to info in request packet.
*/
GETWORD(req->r_rrq.rmp_offset, size);
if (lseek(oldconn->bootfd, (off_t)size, L_SET) < 0) {
if (lseek(oldconn->bootfd, (off_t)size, SEEK_SET) < 0) {
syslog(LOG_ERR, "SendReadRepl: lseek: %m (%s)",
EnetStr(rconn));
rpl->r_rrpl.rmp_retcode = RMP_E_ABORT;