summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-source-file.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-07-13 23:11:35 +0000
committernicm <nicm@openbsd.org>2009-07-13 23:11:35 +0000
commit0b2ec5a73cbc76907d3c0607e2d2e1c7a29c075a (patch)
treeb2b7a7948168f79884a2fa5c8f8ff6bf0d9d20b2 /usr.bin/tmux/cmd-source-file.c
parentLoad symbol address with dla, not la; good thing userland is still limited (diff)
downloadwireguard-openbsd-0b2ec5a73cbc76907d3c0607e2d2e1c7a29c075a.tar.xz
wireguard-openbsd-0b2ec5a73cbc76907d3c0607e2d2e1c7a29c075a.zip
Having fixed flags for single-character getopt options is a bit hard to
maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
Diffstat (limited to 'usr.bin/tmux/cmd-source-file.c')
-rw-r--r--usr.bin/tmux/cmd-source-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-source-file.c b/usr.bin/tmux/cmd-source-file.c
index d26d5213418..f28c4f1000a 100644
--- a/usr.bin/tmux/cmd-source-file.c
+++ b/usr.bin/tmux/cmd-source-file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-source-file.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */
+/* $OpenBSD: cmd-source-file.c,v 1.2 2009/07/13 23:11:35 nicm Exp $ */
/*
* Copyright (c) 2008 Tiago Cunha <me@tiagocunha.org>
@@ -39,7 +39,7 @@ struct cmd_source_file_data {
const struct cmd_entry cmd_source_file_entry = {
"source-file", "source",
"path",
- 0,
+ 0, 0,
cmd_source_file_init,
cmd_source_file_parse,
cmd_source_file_exec,