From 09ac29670e41059a9241d9734f25d06ada3bc66d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 26 Apr 2007 23:39:02 +0000 Subject: lint says: fdisk.c:160: warning: operator '==' found where '=' was expected yet gcc happily ate it... see, lint is useful --- sbin/fdisk/fdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index b91fcfca951..148a3b825cb 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fdisk.c,v 1.46 2006/11/09 00:01:10 deraadt Exp $ */ +/* $OpenBSD: fdisk.c,v 1.47 2007/04/26 23:39:01 deraadt Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -157,7 +157,7 @@ main(int argc, char *argv[]) if (mbrfile != NULL && (fd = open(mbrfile, O_RDONLY)) == -1) { warn("%s", mbrfile); warnx("using builtin MBR"); - mbrfile == NULL; + mbrfile = NULL; } if (mbrfile == NULL) { memcpy(mbr_buf, builtin_mbr, sizeof(mbr_buf)); -- cgit v1.2.3