summaryrefslogtreecommitdiff
path: root/quota_nld.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2010-01-05 11:28:26 +0000
committerjkar8572 <jkar8572>2010-01-05 11:28:26 +0000
commit077c4c5cd183f46e89f6cb5b1269019235bb9b8a (patch)
tree083b5665c736c443e806692c613adf2c235f3e33 /quota_nld.c
parent3786e49ea95fd4091d2a96b2db6104b225e44f2f (diff)
downloadlinuxquota-077c4c5cd183f46e89f6cb5b1269019235bb9b8a.tar.gz
* Improved manpage of quota_nld (Eddie)
* Fixed long option handling of quota_nld (Jan Kara)
Diffstat (limited to 'quota_nld.c')
-rw-r--r--quota_nld.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/quota_nld.c b/quota_nld.c
index 6c08d56..a8c8d34 100644
--- a/quota_nld.c
+++ b/quota_nld.c
@@ -36,15 +36,6 @@
char *progname;
-static const struct option options[] = {
- { "version", 0, NULL, 'V' },
- { "help", 0, NULL, 'h' },
- { "no-dbus", 0, NULL, 'D' },
- { "no-console", 0, NULL, 'C' },
- { "no-daemon", 0, NULL, 'F' },
- { NULL, 0, NULL, 0 }
-};
-
struct quota_warning {
uint32_t qtype;
uint64_t excess_id;
@@ -72,6 +63,16 @@ static struct nla_policy quota_nl_warn_cmd_policy[QUOTA_NL_A_MAX+1] = {
int flags;
DBusConnection *dhandle;
+static const struct option options[] = {
+ { "version", 0, NULL, 'V' },
+ { "help", 0, NULL, 'h' },
+ { "no-dbus", 0, NULL, 'D' },
+ { "no-console", 0, NULL, 'C' },
+ { "foreground", 0, NULL, 'F' },
+ { "print-below", 0, NULL, 'b' },
+ { NULL, 0, NULL, 0 }
+};
+
void show_help(void)
{
errstr(_("Usage: %s [options]\nOptions are:\n\