Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makefs Remove unused variable (to fix the build)



details:   https://anonhg.NetBSD.org/src/rev/23773e9b3944
branches:  trunk
changeset: 930945:23773e9b3944
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Apr 18 12:25:01 2020 +0000

description:
Remove unused variable (to fix the build)

diffstat:

 usr.sbin/makefs/udf.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r 8ecdbf90e77f -r 23773e9b3944 usr.sbin/makefs/udf.c
--- a/usr.sbin/makefs/udf.c     Sat Apr 18 11:00:37 2020 +0000
+++ b/usr.sbin/makefs/udf.c     Sat Apr 18 12:25:01 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf.c,v 1.20 2020/04/18 09:45:45 reinoud Exp $ */
+/* $NetBSD: udf.c,v 1.21 2020/04/18 12:25:01 martin Exp $ */
 
 /*
  * Copyright (c) 2006, 2008, 2013 Reinoud Zandijk
@@ -30,7 +30,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: udf.c,v 1.20 2020/04/18 09:45:45 reinoud Exp $");
+__RCSID("$NetBSD: udf.c,v 1.21 2020/04/18 12:25:01 martin Exp $");
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -562,7 +562,6 @@
        struct extfile_entry *efe;
        uint64_t inf_len, obj_size;
        uint32_t l_ea, l_ad;
-       uint32_t desc_size;
        uint16_t crclen;
        uint8_t *data, *pos;
 
@@ -576,7 +575,6 @@
                icb       = &fe->icbtag;
                inf_len   = udf_rw64(fe->inf_len);
                obj_size  = 0;
-               desc_size = sizeof(struct file_entry);
        } else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
                efe       = &dscr->efe;
                data      = efe->data;
@@ -585,7 +583,6 @@
                icb       = &efe->icbtag;
                inf_len   = udf_rw64(efe->inf_len);
                obj_size  = udf_rw64(efe->obj_size);
-               desc_size = sizeof(struct extfile_entry);
        } else {
                errx(1, "Bad tag passed to udf_file_inject_blob");
        }



Home | Main Index | Thread Index | Old Index