summaryrefslogtreecommitdiff
path: root/debian/patches/0008-trans-fakeroot-use-C99-style-struct-initialization.patch
blob: 48345cfae0bb314fa6be1a5e588da11229bac9b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 2d651aa1d93c8e3c537caad4643a6f861443109e Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Fri, 16 May 2014 13:15:03 +0200
Subject: [PATCH 08/20] trans/fakeroot: use C99-style struct initialization

* trans/fakeroot.c (main): Use C99-style struct initialization to
initialize argp.  This avoids a warning about missing field
initializers.
---
 trans/fakeroot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 3107e29..c4b95de 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -993,7 +993,7 @@ main (int argc, char **argv)
   error_t err;
   mach_port_t bootstrap;
 
-  struct argp argp = { NULL, NULL, NULL, "\
+  struct argp argp = { .doc = "\
 A translator for faking privileged access to an underlying filesystem.\v\
 This translator appears to give transparent access to the underlying \
 directory node.  However, all accesses are made using the credentials \
-- 
2.0.0.rc0