summaryrefslogtreecommitdiff
path: root/sbin/fdisk
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-04-26 23:39:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-04-26 23:39:02 +0000
commit09ac29670e41059a9241d9734f25d06ada3bc66d (patch)
treea75cbed210e963144bb49034b9d319b7ce0d4d1b /sbin/fdisk
parent61f8c065ab7110308a9472c731e71698830a734d (diff)
lint says: fdisk.c:160: warning: operator '==' found where '=' was expected
yet gcc happily ate it... see, lint is useful
Diffstat (limited to 'sbin/fdisk')
-rw-r--r--sbin/fdisk/fdisk.c4
1 files changed, 2 insertions, 2 deletions
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));