diff options
Diffstat (limited to 'debian/patches/fixes0002-random-fix-odd-formatting.patch')
-rw-r--r-- | debian/patches/fixes0002-random-fix-odd-formatting.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/debian/patches/fixes0002-random-fix-odd-formatting.patch b/debian/patches/fixes0002-random-fix-odd-formatting.patch new file mode 100644 index 00000000..eeed2a1a --- /dev/null +++ b/debian/patches/fixes0002-random-fix-odd-formatting.patch @@ -0,0 +1,46 @@ +From 608ea90065a50b7f8e3a5592c8e8e4cbd0265490 Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Fri, 6 Nov 2015 11:48:39 +0100 +Subject: [PATCH hurd 2/4] random: fix odd formatting + +* random/random.c (trivfs_append_args): Fix odd formatting. +--- + random/random.c | 11 +++-------- + 1 file changed, 3 insertions(+), 8 deletions(-) + +diff --git a/random/random.c b/random/random.c +index 15be383..9ade161 100644 +--- a/random/random.c ++++ b/random/random.c +@@ -486,25 +486,20 @@ trivfs_append_args (struct trivfs_control *fsys, + { + error_t err = 0; + char *opt; +- ++ + pthread_mutex_lock (&global_lock); + switch (level) + { + case 0: +- { + opt = "--weak"; + break; +- } ++ + case 1: +- { + opt = "--fast"; + break; +- } ++ + default: +- { + opt = "--secure"; +- break; +- } + } + if (level != DEFAULT_LEVEL) + err = argz_add (argz, argz_len, opt); +-- +2.1.4 + |