* [PATCH] Minor fixes: typo, missing break in switch
@ 2014-11-12 15:49 Boris Egorov
2014-11-13 14:11 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Boris Egorov @ 2014-11-12 15:49 UTC (permalink / raw)
To: util-linux; +Cc: Boris Egorov
Signed-off-by: Boris Egorov <egorov@linux.com>
---
disk-utils/fdisk.c | 1 +
libblkid/src/superblocks/nilfs.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c
index e5fe31b..7d6951d 100644
--- a/disk-utils/fdisk.c
+++ b/disk-utils/fdisk.c
@@ -779,6 +779,7 @@ int main(int argc, char **argv)
if (!lb)
errx(EXIT_FAILURE, _("unsupported disklabel: %s"), optarg);
fdisk_label_set_disabled(lb, 0);
+ break;
}
case 'u':
if (optarg && *optarg == '=')
diff --git a/libblkid/src/superblocks/nilfs.c b/libblkid/src/superblocks/nilfs.c
index 7b87717..3f03901 100644
--- a/libblkid/src/superblocks/nilfs.c
+++ b/libblkid/src/superblocks/nilfs.c
@@ -97,7 +97,7 @@ static int probe_nilfs2(blkid_probe pr, const struct blkid_idmag *mag)
/* backup */
sbb = (struct nilfs_super_block *) blkid_probe_get_buffer(
pr, ((pr->size / 0x200) - 8) * 0x200, sizeof(struct nilfs_super_block));
- if (!sbp)
+ if (!sbb)
return errno ? -errno : 1;
/*
--
2.1.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Minor fixes: typo, missing break in switch
2014-11-12 15:49 [PATCH] Minor fixes: typo, missing break in switch Boris Egorov
@ 2014-11-13 14:11 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2014-11-13 14:11 UTC (permalink / raw)
To: Boris Egorov; +Cc: util-linux
On Wed, Nov 12, 2014 at 09:49:01PM +0600, Boris Egorov wrote:
> disk-utils/fdisk.c | 1 +
> libblkid/src/superblocks/nilfs.c | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
Applied (as two patches), thanks!
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-13 14:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12 15:49 [PATCH] Minor fixes: typo, missing break in switch Boris Egorov
2014-11-13 14:11 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).