make style

This commit is contained in:
Romuald Conty 2013-01-31 16:12:14 +01:00
parent acdde1088c
commit 519dd8f8e2
4 changed files with 7 additions and 9 deletions

View file

@ -29,10 +29,8 @@
int setenv(const char *name, const char *value, int overwrite)
{
int exists = GetEnvironmentVariableA(name, NULL, 0);
if ((exists && overwrite) || (!exists))
{
if (!SetEnvironmentVariableA(name, value))
{
if ((exists && overwrite) || (!exists)) {
if (!SetEnvironmentVariableA(name, value)) {
// Set errno here correctly
return -1;
}

View file

@ -33,7 +33,7 @@
// With MinGW, getopt(3) is provided as separate header
#if defined(WIN32) && defined(__GNUC__) /* mingw compiler */
#include <getopt.h>
#include <getopt.h>
#endif

View file

@ -45,7 +45,7 @@
# define strdup _strdup
# endif
/*
/*
* setenv and unsetenv are not Windows compliant nor implemented in MinGW.
* These declarations get rid of the "implicit declaration warning."
*/

View file

@ -26,9 +26,9 @@
#include <fcntl.h>
#ifndef LOG
// Leaving in a preprocessor error, as the build system should skip this
// file otherwise.
#error "No logging defined, but log-printf.c still compiled."
// Leaving in a preprocessor error, as the build system should skip this
// file otherwise.
#error "No logging defined, but log-printf.c still compiled."
#else // LOG
void