summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-07-19 17:09:25 +0000
committerLennart Poettering <lennart@poettering.net>2004-07-19 17:09:25 +0000
commit0475f97120b781ead9d6bec9c0d4f482c2b64000 (patch)
tree081c55b4ac91a7a9fd8e8bb1dfd3205ac4312b28 /src/util.c
parent5df7002d1d0b8a0f58f3b976c2afd7ece9afc900 (diff)
some build system updates and warning removals
git-svn-id: file:///home/lennart/svn/public/syrep/trunk@61 07ea20a6-d2c5-0310-9e02-9ef735347d72
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 2d010a0..cbb9b91 100644
--- a/src/util.c
+++ b/src/util.c
@@ -95,7 +95,7 @@ char* normalize_path(char *s) {
void rotdash(void) {
static const char dashes[] = /* ".oOo"; */ "|/-\\";
- const static char *d = dashes;
+ static const char *d = dashes;
if (!args.progress_flag)
return;
@@ -328,7 +328,7 @@ int copy_fd(int sfd, int dfd, off_t l) {
n = loop_read(sfd, dp+(dfo-mdfo), m);
munmap(dp, dm);
- if (n != m) {
+ if (n != (ssize_t) m) {
if (n < 0)
fprintf(stderr, "read(): %s\n", strerror(errno));
@@ -368,7 +368,7 @@ int copy_fd(int sfd, int dfd, off_t l) {
n = loop_write(dfd, sp+(sfo-msfo), m);
munmap(sp, sm);
- if (n != m) {
+ if (n != (ssize_t) m) {
if (n < 0)
fprintf(stderr, "write(): %s\n", strerror(errno));