Fix indentation problems.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18371 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2004-01-11 04:49:10 +00:00
parent 10bf9675ba
commit 06deb92741
2 changed files with 26 additions and 18 deletions

View file

@ -1,3 +1,7 @@
2003-12-20 Sheldon Gill <sheldon@iinet.net.au>
* Source/NSProcessInfo.m (+load): Fix coding standard violations.
2004-01-10 Bruno Haible <bruno@clisp.org> 2004-01-10 Bruno Haible <bruno@clisp.org>
* Locale.aliases: Add many new locales. Fix typo for EcuadorSpanish. * Locale.aliases: Add many new locales. Fix typo for EcuadorSpanish.

View file

@ -349,26 +349,29 @@ static char **_gnu_noobjc_env = NULL;
/* open the kernel */ /* open the kernel */
kptr = kvm_open(NULL, "/dev/null", NULL, O_RDONLY, "NSProcessInfo"); kptr = kvm_open(NULL, "/dev/null", NULL, O_RDONLY, "NSProcessInfo");
if(!kptr) { if (!kptr)
fprintf(stderr, "Error: Your system appears to provide libkvm, but the kernel open fails\n"); {
fprintf(stderr, "Try to reconfigure gnustep-base with --enable-fake-main. to work\n"); fprintf(stderr, "Error: Your system appears to provide libkvm, but the kernel open fails\n");
fprintf(stderr, "around this problem."); fprintf(stderr, "Try to reconfigure gnustep-base with --enable-fake-main. to work\n");
abort(); fprintf(stderr, "around this problem.");
} abort();
}
/* find the process */ /* find the process */
proc_ptr = kvm_getprocs(kptr, KERN_PROC_PID, getpid(), &nprocs); proc_ptr = kvm_getprocs(kptr, KERN_PROC_PID, getpid(), &nprocs);
if(!proc_ptr || (nprocs != 1)) { if (!proc_ptr || (nprocs != 1))
fprintf(stderr, "Error: libkvm cannot find the current process\n"); {
abort(); fprintf(stderr, "Error: libkvm cannot find the current process\n");
} abort();
}
/* get the environment vectors */ /* get the environment vectors */
vectors = kvm_getenvv(kptr, proc_ptr, 0); vectors = kvm_getenvv(kptr, proc_ptr, 0);
if(!vectors) { if (!vectors)
fprintf(stderr, "Error: libkvm does not return an environment for the current process\n"); {
abort(); fprintf(stderr, "Error: libkvm does not return an environment for the current process\n");
} abort();
}
/* copy the environment strings */ /* copy the environment strings */
for(count = 0; vectors[count]; count++) for(count = 0; vectors[count]; count++)
@ -386,10 +389,11 @@ static char **_gnu_noobjc_env = NULL;
/* get the argument vectors */ /* get the argument vectors */
vectors = kvm_getargv(kptr, proc_ptr, 0); vectors = kvm_getargv(kptr, proc_ptr, 0);
if(!vectors) { if (!vectors)
fprintf(stderr, "Error: libkvm does not return arguments for the current process\n"); {
abort(); fprintf(stderr, "Error: libkvm does not return arguments for the current process\n");
} abort();
}
/* copy the argument strings */ /* copy the argument strings */
for(_gnu_noobjc_argc = 0; vectors[_gnu_noobjc_argc]; _gnu_noobjc_argc++) for(_gnu_noobjc_argc = 0; vectors[_gnu_noobjc_argc]; _gnu_noobjc_argc++)