Formatting & Whitespace Removal

SVN revision: 41443
This commit is contained in:
Christopher Michael 2009-07-19 20:30:33 +00:00
parent b0a07a8ac6
commit 230b89e8da
1 changed files with 13 additions and 14 deletions

View File

@ -11,7 +11,7 @@
#include <limits.h>
#include <fcntl.h>
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
# include <alloca.h>
#endif
static void env_set(const char *var, const char *val);
@ -280,9 +280,7 @@ precache(void)
if (!fork())
{
if (buf[0] == 's')
{
stat(buf + 2, &st);
}
else if (buf[0] == 'o')
{
fd = open(buf + 2, O_RDONLY);
@ -374,6 +372,7 @@ valgrind_append(char **dst, int valgrind_mode, const char *valgrind_path, const
if (valgrind_log)
{
static char logparam[PATH_MAX + sizeof("--log-file=")];
snprintf(logparam, sizeof(logparam), "--log-file=%s", valgrind_log);
dst[i++] = logparam;
}
@ -428,6 +427,7 @@ main(int argc, char **argv)
else if (!strncmp(argv[i], "-valgrind", sizeof("-valgrind") - 1))
{
const char *val = argv[i] + sizeof("-valgrind") - 1;
if (*val == '\0')
valgrind_mode = 1;
else if (*val == '-')
@ -472,8 +472,7 @@ main(int argc, char **argv)
"Please run:\n"
"\tenlightenment %s\n"
"for more options.\n",
argv[i]
);
argv[i]);
exit(0);
}
}