summaryrefslogtreecommitdiffstats
path: root/misc-utils
diff options
context:
space:
mode:
authorJames Youngman2008-04-07 00:19:53 +0200
committerKarel Zak2008-04-08 01:44:51 +0200
commit9d374821a08c2032d9713837b8ec06ec0ed43889 (patch)
tree6e39189298e8bf9b30c03ae2419482df61072a9a /misc-utils
parentlogin-utils: cleanup strlen() and fgets() usage (diff)
downloadkernel-qcow2-util-linux-9d374821a08c2032d9713837b8ec06ec0ed43889.tar.gz
kernel-qcow2-util-linux-9d374821a08c2032d9713837b8ec06ec0ed43889.tar.xz
kernel-qcow2-util-linux-9d374821a08c2032d9713837b8ec06ec0ed43889.zip
script: read returns a size_t
Signed-off-by: James Youngman <jay@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/script.c b/misc-utils/script.c
index 5f56f505e..fc54fcef7 100644
--- a/misc-utils/script.c
+++ b/misc-utils/script.c
@@ -286,7 +286,7 @@ my_strftime(char *buf, size_t len, const char *fmt, const struct tm *tm) {
void
dooutput() {
- register int cc;
+ register ssize_t cc;
time_t tvec;
char obuf[BUFSIZ];
struct timeval tv;
@@ -338,7 +338,7 @@ dooutput() {
break;
if (tflg) {
newtime = tv.tv_sec + (double) tv.tv_usec / 1000000;
- fprintf(stderr, "%f %i\n", newtime - oldtime, cc);
+ fprintf(stderr, "%f %zd\n", newtime - oldtime, cc);
oldtime = newtime;
}
wrt = write(1, obuf, cc);