bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/4] trans/fakeroot: use C99-style struct initialization


From: Justus Winter
Subject: [PATCH 3/4] trans/fakeroot: use C99-style struct initialization
Date: Fri, 16 May 2014 18:56:26 +0200

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]