aboutsummaryrefslogtreecommitdiff
path: root/libexec/rbootd/rmpproto.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rbootd/rmpproto.c')
-rw-r--r--libexec/rbootd/rmpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rbootd/rmpproto.c b/libexec/rbootd/rmpproto.c
index 80ce805db586..3619b39ff795 100644
--- a/libexec/rbootd/rmpproto.c
+++ b/libexec/rbootd/rmpproto.c
@@ -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;