From: Ken Raeburn Date: Tue, 12 Sep 2006 00:20:01 +0000 (+0000) Subject: whitespace X-Git-Tag: krb5-1.6-alpha1~144 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c9261ff6ea764c35ef694bde5c5081d769276971;p=krb5.git whitespace git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18582 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c index 7c07a3d27..a54d85bda 100644 --- a/src/kadmin/cli/kadmin.c +++ b/src/kadmin/cli/kadmin.c @@ -236,15 +236,14 @@ char *kadmin_startup(argc, argv) case 'x': db_args_size++; { - char **temp = realloc( db_args, sizeof(char*) * (db_args_size+1)); /* one for NULL */ - if( temp == NULL ) - { - fprintf(stderr,"%s: Cannot initialize. Not enough memory\n", - argv[0]); - exit(1); + char **temp = realloc(db_args, sizeof(char*) * (db_args_size+1)); + if (temp == NULL) { + fprintf(stderr,"%s: Cannot initialize. Not enough memory\n", + argv[0]); + exit(1); } - db_args = temp; + db_args = temp; } db_args[db_args_size-1] = optarg; db_args[db_args_size] = NULL; @@ -273,13 +272,10 @@ char *kadmin_startup(argc, argv) break; case 'd': /* now db_name is not a seperate argument. It has to be passed as part of the db_args */ - if( !db_name ) - { - db_name = malloc( strlen(optarg) + sizeof("dbname=")); - } - else - { - db_name = realloc( db_name, strlen(optarg) + sizeof("dbname=")); + if( !db_name ) { + db_name = malloc(strlen(optarg) + sizeof("dbname=")); + } else { + db_name = realloc(db_name, strlen(optarg) + sizeof("dbname=")); } strcpy( db_name, "dbname="); @@ -287,10 +283,10 @@ char *kadmin_startup(argc, argv) db_args_size++; { - char **temp = realloc( db_args, sizeof(char*) * (db_args_size+1)); /* one for NULL */ - if( temp == NULL ) - { - fprintf(stderr,"%s: Cannot initialize. Not enough memory\n", + char **temp = realloc(db_args, sizeof(char*) * (db_args_size+1)); /* one for NULL */ + if (temp == NULL) { + fprintf(stderr, + "%s: Cannot initialize. Not enough memory\n", argv[0]); exit(1); }