[hackers] [ubase] Nuke a harmless warning || sin

From: <git_AT_suckless.org>
Date: Wed, 04 Jun 2014 13:19:50 +0200

commit 5c66e30060c4bb62db928bdb6e557a23e2a32160
Author: sin <sin_AT_2f30.org>
Date: Wed Jun 4 12:12:18 2014 +0100

    Nuke a harmless warning

diff --git a/dd.c b/dd.c
index 9fdf6d9..f472c88 100644
--- a/dd.c
+++ b/dd.c
_AT_@ -68,7 +68,7 @@ prepare_copy(struct dd_config *ddc, int *ifd, int *ofd)
                 memset(&fst, 0, sizeof(fst));
                 if (statfs(ddc->out, &fst) < 0 || fst.f_bsize == 0)
                         fst.f_bsize = 0x1000;
- if (fst.f_bsize > st.st_blksize)
+ if ((unsigned long)fst.f_bsize > (unsigned long)st.st_blksize)
                         ddc->bs = fst.f_bsize;
                 else
                         ddc->bs = st.st_blksize;
Received on Wed Jun 04 2014 - 13:19:50 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 04 2014 - 13:24:08 CEST