From: Arran Cudbard-Bell Date: Sat, 23 Feb 2013 01:33:41 +0000 (-0500) Subject: More formatting X-Git-Tag: release_3_0_0_beta1~952 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d57f7e575399257c27411cb73dc66d0cfbbee8;p=thirdparty%2Ffreeradius-server.git More formatting --- diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index 08b46c3955b..31753164e3c 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -1721,25 +1721,25 @@ static int parse_output_file_name(const char *arg, command_t *cmd) cmd->module_name.install = gen_install_name(arg, TYPE_MODULE_LIB); if (!cmd->options.dry_run) { - char *newname; - char *newext; - newname = lt_malloc(strlen(cmd->static_name.normal) + 1); + char *newname; + char *newext; + newname = lt_malloc(strlen(cmd->static_name.normal) + 1); - strcpy(newname, cmd->static_name.normal); - newext = strrchr(newname, '/'); - if (!newext) { - /* Check first to see if the dir already exists! */ - safe_mkdir(cmd, ".libs"); - } else { - *newext = '\0'; - safe_mkdir(cmd, newname); - } - free(newname); + strcpy(newname, cmd->static_name.normal); + newext = strrchr(newname, '/'); + if (!newext) { + /* Check first to see if the dir already exists! */ + safe_mkdir(cmd, ".libs"); + } else { + *newext = '\0'; + safe_mkdir(cmd, newname); + } + free(newname); } #ifdef TRUNCATE_DLL_NAME if (shared) { - arg = truncate_dll_name(arg); + arg = truncate_dll_name(arg); } #endif @@ -1757,20 +1757,20 @@ static int parse_output_file_name(const char *arg, command_t *cmd) cmd->static_name.install = gen_install_name(arg, TYPE_STATIC_LIB); if (!cmd->options.dry_run) { - char *newname; - char *newext; - newname = lt_malloc(strlen(cmd->static_name.normal) + 1); + char *newname; + char *newext; + newname = lt_malloc(strlen(cmd->static_name.normal) + 1); - strcpy(newname, cmd->static_name.normal); - newext = strrchr(newname, '/'); - if (!newext) { - /* Check first to see if the dir already exists! */ - safe_mkdir(cmd, ".libs"); - } else { - *newext = '\0'; - safe_mkdir(cmd, newname); - } - free(newname); + strcpy(newname, cmd->static_name.normal); + newext = strrchr(newname, '/'); + if (!newext) { + /* Check first to see if the dir already exists! */ + safe_mkdir(cmd, ".libs"); + } else { + *newext = '\0'; + safe_mkdir(cmd, newname); + } + free(newname); } cmd->output_name = arg; @@ -1917,7 +1917,7 @@ static void generate_def_file(command_t *cmd) ext = strrchr(implib_file, '.'); if (ext) { - *ext = 0; + *ext = '\0'; } strcat(implib_file, ".");