[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 03/17: procfs: Move setting default parameters to a separate func
From: |
Samuel Thibault |
Subject: |
[hurd] 03/17: procfs: Move setting default parameters to a separate function |
Date: |
Mon, 15 Feb 2016 09:10:02 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 63abc67ed48dbdf8dfe01fd1f29a97d795f907ce
Author: Samuel Thibault <address@hidden>
Date: Tue Jan 19 22:34:35 2016 +0100
procfs: Move setting default parameters to a separate function
* procfs/main.c (set_default_options): New function
(argp_parser): Call `set_default_options'.
---
procfs/main.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/procfs/main.c b/procfs/main.c
index 509f488..5f84d62 100644
--- a/procfs/main.c
+++ b/procfs/main.c
@@ -50,6 +50,13 @@ uid_t opt_anon_owner;
#define NOEXEC_KEY -2 /* Likewise. */
#define NOSUID_KEY -3 /* Likewise. */
+static void set_default_options (void)
+{
+ opt_clk_tck = 100;
+ opt_stat_mode = 0444;
+ opt_fake_self = 1;
+}
+
static error_t
argp_parser (int key, char *arg, struct argp_state *state)
{
@@ -97,9 +104,7 @@ argp_parser (int key, char *arg, struct argp_state *state)
break;
case 'c':
- opt_clk_tck = 100;
- opt_stat_mode = 0444;
- opt_fake_self = 1;
+ set_default_options();
break;
case 'a':
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (0aa179e -> ffaff64), Samuel Thibault, 2016/02/15
- [hurd] 03/17: procfs: Move setting default parameters to a separate function,
Samuel Thibault <=
- [hurd] 11/17: Fixed leaks in _netfs_translator_callback2_fn, Samuel Thibault, 2016/02/15
- [hurd] 04/17: exec: remove duplicate function call, Samuel Thibault, 2016/02/15
- [hurd] 02/17: Fix typo, Samuel Thibault, 2016/02/15
- [hurd] 16/17: Fix function name, Samuel Thibault, 2016/02/15
- [hurd] 14/17: Make sure to complete auth_server_authenticate, Samuel Thibault, 2016/02/15
- [hurd] 15/17: Fix hang on reauthentication, Samuel Thibault, 2016/02/15
- [hurd] 05/17: utils/settrans: improve --chroot functionality, Samuel Thibault, 2016/02/15
- [hurd] 08/17: mach-defpager: link dynamically, Samuel Thibault, 2016/02/15
- [hurd] 09/17: devnode: fix falling back to the kernel driver, Samuel Thibault, 2016/02/15
- [hurd] 01/17: Also build exec.static, Samuel Thibault, 2016/02/15