[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 47/75: fix compiler warnings in hurd/libstore
From: |
Samuel Thibault |
Subject: |
[hurd] 47/75: fix compiler warnings in hurd/libstore |
Date: |
Thu, 14 Jan 2016 01:04:09 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch dde
in repository hurd.
commit b290ced29400ff6276c8438129236f99f50c3ff9
Author: Flavio Cruz <address@hidden>
Date: Tue Dec 29 23:08:32 2015 +0100
fix compiler warnings in hurd/libstore
---
libstore/decode.c | 4 ++--
libstore/file.c | 4 ++--
libstore/zero.c | 5 +++--
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/libstore/decode.c b/libstore/decode.c
index 64405ec..4bb23c1 100644
--- a/libstore/decode.c
+++ b/libstore/decode.c
@@ -35,7 +35,7 @@ store_std_leaf_decode (struct store_enc *enc,
{
char *misc, *name;
error_t err;
- int type, flags;
+ int flags;
mach_port_t port;
size_t block_size, num_runs, name_len, misc_len;
/* Call CREATE appriately from within store_with_decoded_runs. */
@@ -49,7 +49,7 @@ store_std_leaf_decode (struct store_enc *enc,
return EINVAL;
/* Read encoded ints. */
- type = enc->ints[enc->cur_int++];
+ enc->cur_int++; /* Ignore type. */
flags = enc->ints[enc->cur_int++];
block_size = enc->ints[enc->cur_int++];
num_runs = enc->ints[enc->cur_int++];
diff --git a/libstore/file.c b/libstore/file.c
index 49f1c3f..ce02f1f 100644
--- a/libstore/file.c
+++ b/libstore/file.c
@@ -65,7 +65,7 @@ file_write (struct store *store,
size_t *amount)
{
size_t bsize = store->block_size;
- return io_write (store->port, buf, len, addr * bsize, amount);
+ return io_write (store->port, (void *) buf, len, addr * bsize, amount);
}
static error_t
@@ -235,7 +235,7 @@ file_byte_write (struct store *store,
const void *buf, size_t len,
size_t *amount)
{
- return io_write (store->port, buf, len, addr, amount);
+ return io_write (store->port, (void *) buf, len, addr, amount);
}
struct store_class
diff --git a/libstore/zero.c b/libstore/zero.c
index 2fba72c..878b227 100644
--- a/libstore/zero.c
+++ b/libstore/zero.c
@@ -103,13 +103,14 @@ zero_decode (struct store_enc *enc, const struct
store_class *const *classes,
struct store **store)
{
store_offset_t size;
- int type, flags;
+ int flags;
if (enc->cur_int + 2 > enc->num_ints
|| enc->cur_offset + 1 > enc->num_offsets)
return EINVAL;
- type = enc->ints[enc->cur_int++];
+ /* Ignore type. */
+ enc->cur_int++;
flags = enc->ints[enc->cur_int++];
size = enc->offsets[enc->cur_offset++];
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 18/75: Drop spurious debugging or outdated changes, (continued)
- [hurd] 18/75: Drop spurious debugging or outdated changes, Samuel Thibault, 2016/01/13
- [hurd] 74/75: Merge remote-tracking branch 'incubator/dde' into dde-upstream, Samuel Thibault, 2016/01/13
- [hurd] 15/75: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd into dde, Samuel Thibault, 2016/01/13
- [hurd] 73/75: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd into dde, Samuel Thibault, 2016/01/13
- [hurd] 16/75: Add libhurd-slab, Samuel Thibault, 2016/01/13
- [hurd] 70/75: Merge remote-tracking branch 'incubator/dde' into dde-upstream, Samuel Thibault, 2016/01/13
- [hurd] 72/75: Drop devnode and libhurd-slab, now upstream, Samuel Thibault, 2016/01/13
- [hurd] 56/75: fix compiler warnings in hurd/nfs and hurd/nfsd, Samuel Thibault, 2016/01/13
- [hurd] 41/75: fix compiler warnings in hurd/libdiskfs, Samuel Thibault, 2016/01/13
- [hurd] 69/75: Fix O_DIRECTORY lookup on trivial translators, Samuel Thibault, 2016/01/13
- [hurd] 47/75: fix compiler warnings in hurd/libstore,
Samuel Thibault <=
- [hurd] 50/75: fix compiler warnings in hurd/procfs, Samuel Thibault, 2016/01/13
- [hurd] 54/75: fix compiler warnings in hurd/trans, Samuel Thibault, 2016/01/13
- [hurd] 58/75: Define IO_OUTTRAN so that term_on_pty returns a mach_port_t, Samuel Thibault, 2016/01/13
- [hurd] 49/75: fix compiler warnings in hurd/nfs and hurd/nfsd, Samuel Thibault, 2016/01/13
- [hurd] 35/75: fix compiler warnings in hurd/console-client, Samuel Thibault, 2016/01/13
- [hurd] 40/75: fix compiler warnings in hurd/isofs, Samuel Thibault, 2016/01/13
- [hurd] 57/75: Add missing libraries to fix link errors, Samuel Thibault, 2016/01/13
- [hurd] 52/75: fix compiler warnings in hurd/random, Samuel Thibault, 2016/01/13
- [hurd] 62/75: fix mach-defpager static linking, Samuel Thibault, 2016/01/13
- [hurd] 60/75: Drop OTHERLIBS and use LDLIBS exclusively, Samuel Thibault, 2016/01/13