Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fdisk Use the 1st element's size as the argument to bse...
details: https://anonhg.NetBSD.org/src/rev/792f1a4ac3fb
branches: trunk
changeset: 571283:792f1a4ac3fb
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 15 21:59:23 2004 +0000
description:
Use the 1st element's size as the argument to bsearch.
diffstat:
sbin/fdisk/fdisk.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9794ac944128 -r 792f1a4ac3fb sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c Mon Nov 15 21:01:18 2004 +0000
+++ b/sbin/fdisk/fdisk.c Mon Nov 15 21:59:23 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdisk.c,v 1.85 2004/11/12 16:57:46 christos Exp $ */
+/* $NetBSD: fdisk.c,v 1.86 2004/11/15 21:59:23 christos Exp $ */
/*
* Mach Operating System
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.85 2004/11/12 16:57:46 christos Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.86 2004/11/15 21:59:23 christos Exp $");
#endif /* not lint */
#define MBRPTYPENAMES
@@ -2486,7 +2486,7 @@
struct mbr_ptype *ptr;
ptr = bsearch(&type, mbr_ptypes, KNOWN_SYSIDS,
- sizeof(struct mbr_ptypes[0]), type_match);
+ sizeof(mbr_ptypes[0]), type_match);
if (ptr == 0)
return ("unknown");
return (ptr->name);
Home |
Main Index |
Thread Index |
Old Index