comparison cinst/nssstore_linux.c @ 905:698b6a9bd75e

Fix coding style for C code astyle --style=gnu --indent=spaces=2
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 13 Aug 2014 15:49:47 +0200
parents 216a65d7fc4b
children dbf5ea18cb20
comparison
equal deleted inserted replaced
904:f89b41fa7048 905:698b6a9bd75e
48 uid_t uid, gid_t gid, char *homedir) 48 uid_t uid, gid_t gid, char *homedir)
49 { 49 {
50 int pipe_fd[2]; 50 int pipe_fd[2];
51 pid_t pid = 0; 51 pid_t pid = 0;
52 char *argv[2] = {NULL, NULL}, 52 char *argv[2] = {NULL, NULL},
53 *envp[2] = {NULL, NULL}, 53 *envp[2] = {NULL, NULL},
54 *inst_dir = NULL; 54 *inst_dir = NULL;
55 size_t homedir_len = 0, 55 size_t homedir_len = 0,
56 exe_path_len = 0; 56 exe_path_len = 0;
57 int ret = -1, 57 int ret = -1,
58 i = 0; 58 i = 0;
59 FILE *stream = NULL; 59 FILE *stream = NULL;
177 } 177 }
178 178
179 success = true; 179 success = true;
180 180
181 done: 181 done:
182 if (stream) { 182 if (stream)
183 fclose (stream); 183 {
184 } 184 fclose (stream);
185 }
185 xfree (argv[0]); 186 xfree (argv[0]);
186 xfree (envp[0]); 187 xfree (envp[0]);
187 close (pipe_fd[0]); 188 close (pipe_fd[0]);
188 close (pipe_fd[1]); 189 close (pipe_fd[1]);
189 190

http://wald.intevation.org/projects/trustbridge/