diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2015-12-29 23:08:32 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-12-29 23:12:42 +0100 |
commit | b290ced29400ff6276c8438129236f99f50c3ff9 (patch) | |
tree | e2813f1421494324df6ef3bb3ca8f0efd821d593 /libstore/zero.c | |
parent | adeeb9990e6302482b38267fd517a2516d5b9e2a (diff) |
fix compiler warnings in hurd/libstore
Diffstat (limited to 'libstore/zero.c')
-rw-r--r-- | libstore/zero.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libstore/zero.c b/libstore/zero.c index 2fba72cc..878b2271 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++]; |