summaryrefslogtreecommitdiffstats
path: root/libfdisk
diff options
context:
space:
mode:
authorKarel Zak2017-03-24 11:59:57 +0100
committerKarel Zak2017-03-24 11:59:57 +0100
commit3006dd73527eb43a960325d2f0e396f20f0828ba (patch)
tree078152623af94a4086c842c3ab0c2b6ef66f59b8 /libfdisk
parentbash-completion: update fincore to have latest options (diff)
parentblkid: add control struct (diff)
downloadkernel-qcow2-util-linux-3006dd73527eb43a960325d2f0e396f20f0828ba.tar.gz
kernel-qcow2-util-linux-3006dd73527eb43a960325d2f0e396f20f0828ba.tar.xz
kernel-qcow2-util-linux-3006dd73527eb43a960325d2f0e396f20f0828ba.zip
Merge branch '2017wk11' of git://github.com/kerolasa/lelux-utiliteetit
* '2017wk11' of git://github.com/kerolasa/lelux-utiliteetit: blkid: add control struct blkid: simplify version option handling tests: add static keyword where needed [smatch scan] tests: do not use plain 0 as NULL [smatch scan] libsmartcols: fix test variable shadowing
Diffstat (limited to 'libfdisk')
-rw-r--r--libfdisk/samples/mkpart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libfdisk/samples/mkpart.c b/libfdisk/samples/mkpart.c
index dc476dbe9..4ca3ed35d 100644
--- a/libfdisk/samples/mkpart.c
+++ b/libfdisk/samples/mkpart.c
@@ -55,10 +55,10 @@ int main(int argc, char *argv[])
unsigned int sectorsize;
static const struct option longopts[] = {
- { "label", required_argument, 0, 'x' },
- { "device", required_argument, 0, 'd' },
- { "help", no_argument, 0, 'h' },
- { NULL, 0, 0, 0 },
+ { "label", required_argument, NULL, 'x' },
+ { "device", required_argument, NULL, 'd' },
+ { "help", no_argument, NULL, 'h' },
+ { NULL, 0, NULL, 0 },
};
setlocale(LC_ALL, ""); /* just to have enable UTF8 chars */