]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
stop gcc 7 complaining
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 27 Mar 2018 16:06:43 +0000 (17:06 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 27 Mar 2018 16:06:43 +0000 (17:06 +0100)
src/modules/proto_detail/proto_detail_work.c

index 40d15cde436802281f596847209a86cbb3626853..c19f7edbc6ef2c252a2954abd5b0607e27e81745 100644 (file)
@@ -622,7 +622,9 @@ static ssize_t mod_write(void *instance, void *packet_ctx,
                 *      the point in the file where we were reading from.
                 */
                (void) lseek(inst->fd, track->done_offset, SEEK_SET);
-               (void) write(inst->fd, "Done", 4);
+               if (write(inst->fd, "Done", 4) < 0) {
+                       ERROR("%s - Failed marking entry as done: %s", inst->name, fr_syserror(errno));
+               }
                (void) lseek(inst->fd, inst->read_offset, SEEK_SET);
        }