chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use no_argument, required_argument, optional_argument in longopts
[elogind.git]
/
extras
/
fstab_import
/
fstab_import.c
diff --git
a/extras/fstab_import/fstab_import.c
b/extras/fstab_import/fstab_import.c
index 71ab5d34ee8868e9add0b324a5e41320640c0d5e..e793604faa2e2e9019c340d2df157c4df8b384b5 100644
(file)
--- a/
extras/fstab_import/fstab_import.c
+++ b/
extras/fstab_import/fstab_import.c
@@
-66,9
+66,9
@@
int main(int argc, char *argv[])
{
struct udev *udev;
static const struct option options[] = {
{
struct udev *udev;
static const struct option options[] = {
- { "export",
0
, NULL, 'x' },
- { "debug",
0
, NULL, 'd' },
- { "help",
0
, NULL, 'h' },
+ { "export",
no_argument
, NULL, 'x' },
+ { "debug",
no_argument
, NULL, 'd' },
+ { "help",
no_argument
, NULL, 'h' },
{}
};
char **devices;
{}
};
char **devices;