From b05be95303f54ed9eec3f12a5830f7f88e10911e Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 4 Jun 2012 21:19:57 +0000 Subject: [PATCH] Code cleanup --- src/tail.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tail.c b/src/tail.c index 198dcf8..0c95c0d 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2011 Pierre Pronchery */ +/* Copyright (c) 2006-2012 Pierre Pronchery */ /* This file is part of DeforaOS Unix utils */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,6 +21,7 @@ #include #include #include +#include /* tail */ @@ -73,7 +74,8 @@ static int _tail_do_bytes(Prefs * prefs, FILE * fp, char const * filename) if(fseek(fp, c > 0 ? c - 1 : c, c > 0 ? SEEK_SET : SEEK_END) != 0) { - fputs("tail: Not implemented yet\n", stderr); + /* FIXME implement */ + fprintf(stderr, "tail: %s\n", strerror(ENOSYS)); return 1; } while((i = fread(buf, 1, sizeof(buf), fp)) > 0)