make style
This commit is contained in:
parent
acdde1088c
commit
519dd8f8e2
4 changed files with 7 additions and 9 deletions
|
@ -29,10 +29,8 @@
|
||||||
int setenv(const char *name, const char *value, int overwrite)
|
int setenv(const char *name, const char *value, int overwrite)
|
||||||
{
|
{
|
||||||
int exists = GetEnvironmentVariableA(name, NULL, 0);
|
int exists = GetEnvironmentVariableA(name, NULL, 0);
|
||||||
if ((exists && overwrite) || (!exists))
|
if ((exists && overwrite) || (!exists)) {
|
||||||
{
|
if (!SetEnvironmentVariableA(name, value)) {
|
||||||
if (!SetEnvironmentVariableA(name, value))
|
|
||||||
{
|
|
||||||
// Set errno here correctly
|
// Set errno here correctly
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
// With MinGW, getopt(3) is provided as separate header
|
// With MinGW, getopt(3) is provided as separate header
|
||||||
#if defined(WIN32) && defined(__GNUC__) /* mingw compiler */
|
#if defined(WIN32) && defined(__GNUC__) /* mingw compiler */
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#ifndef LOG
|
#ifndef LOG
|
||||||
// Leaving in a preprocessor error, as the build system should skip this
|
// Leaving in a preprocessor error, as the build system should skip this
|
||||||
// file otherwise.
|
// file otherwise.
|
||||||
#error "No logging defined, but log-printf.c still compiled."
|
#error "No logging defined, but log-printf.c still compiled."
|
||||||
#else // LOG
|
#else // LOG
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue