Mercurial > trustbridge
diff cinst/main.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 | fb69aef056ea |
children | 76c410aff382 |
line wrap: on
line diff
--- a/cinst/main.c Wed Aug 13 15:44:35 2014 +0200 +++ b/cinst/main.c Wed Aug 13 15:49:47 2014 +0200 @@ -75,7 +75,7 @@ */ static int read_choices_file (char *file_name, char ***to_install, - char ***to_remove) + char ***to_remove) { int lines_read = 0; char buf[MAX_LINE_LENGTH + 2]; @@ -205,13 +205,13 @@ { /* TODO handle wchar arguments on Windows or do conversion dance */ char **to_install = NULL, - **to_remove = NULL, - **all_valid_certs = NULL; + **to_remove = NULL, + **all_valid_certs = NULL; int ret = -1; char *certificate_list = NULL, - *certificate_file_name = NULL, - *choices_file_name = NULL; + *certificate_file_name = NULL, + *choices_file_name = NULL; size_t list_len = 0; list_status_t list_status; bool do_uninstall = false; @@ -220,7 +220,7 @@ added to make it more transparent how this programm is called if a user looks at the detailed uac dialog. */ if (argc != 3 || strncmp(argv[1], "list=", 5) != 0 || - strncmp(argv[2], "choices=", 8) != 0) + strncmp(argv[2], "choices=", 8) != 0) { ERRORPRINTF ("Invalid arguments.\n" "Expected arguments: list=<certificate_list> \n" @@ -284,7 +284,7 @@ } ret = read_choices_file (choices_file_name, &to_install, - &to_remove); + &to_remove); if (ret) {