Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makefs usage is dead. name_len should be read as un...
details: https://anonhg.NetBSD.org/src/rev/8f20644a57c5
branches: trunk
changeset: 779057:8f20644a57c5
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Apr 29 13:32:21 2012 +0000
description:
usage is dead. name_len should be read as unsigned byte.
diffstat:
usr.sbin/makefs/cd9660/iso9660_rrip.c | 8 ++++----
usr.sbin/makefs/makefs.c | 7 +++----
2 files changed, 7 insertions(+), 8 deletions(-)
diffs (58 lines):
diff -r a25484e47dcf -r 8f20644a57c5 usr.sbin/makefs/cd9660/iso9660_rrip.c
--- a/usr.sbin/makefs/cd9660/iso9660_rrip.c Sun Apr 29 07:51:47 2012 +0000
+++ b/usr.sbin/makefs/cd9660/iso9660_rrip.c Sun Apr 29 13:32:21 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iso9660_rrip.c,v 1.10 2011/05/29 17:07:58 tsutsui Exp $ */
+/* $NetBSD: iso9660_rrip.c,v 1.11 2012/04/29 13:32:21 joerg Exp $ */
/*
* Copyright (c) 2005 Daniel Watt, Walter Deignan, Ryan Gabrys, Alan
@@ -43,7 +43,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: iso9660_rrip.c,v 1.10 2011/05/29 17:07:58 tsutsui Exp $");
+__RCSID("$NetBSD: iso9660_rrip.c,v 1.11 2012/04/29 13:32:21 joerg Exp $");
#endif /* !__lint */
static void cd9660_rrip_initialize_inode(cd9660node *);
@@ -421,9 +421,9 @@
}
else if ((node->node != NULL) &&
((strlen(node->node->name) !=
- (int)node->isoDirRecord->name_len[0]) ||
+ (uint8_t)node->isoDirRecord->name_len[0]) ||
(memcmp(node->node->name,node->isoDirRecord->name,
- (int) node->isoDirRecord->name_len[0]) != 0))) {
+ (uint8_t)node->isoDirRecord->name_len[0]) != 0))) {
cd9660_rrip_NM(node);
}
diff -r a25484e47dcf -r 8f20644a57c5 usr.sbin/makefs/makefs.c
--- a/usr.sbin/makefs/makefs.c Sun Apr 29 07:51:47 2012 +0000
+++ b/usr.sbin/makefs/makefs.c Sun Apr 29 13:32:21 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makefs.c,v 1.33 2012/04/19 17:09:53 christos Exp $ */
+/* $NetBSD: makefs.c,v 1.34 2012/04/29 13:32:21 joerg Exp $ */
/*
* Copyright (c) 2001-2003 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: makefs.c,v 1.33 2012/04/19 17:09:53 christos Exp $");
+__RCSID("$NetBSD: makefs.c,v 1.34 2012/04/29 13:32:21 joerg Exp $");
#endif /* !__lint */
#include <assert.h>
@@ -84,8 +84,7 @@
struct timespec start_time;
static fstype_t *get_fstype(const char *);
-static void usage(void);
-int main(int, char *[]);
+static void usage(void) __dead;
int
main(int argc, char *argv[])
Home |
Main Index |
Thread Index |
Old Index