Skip to content

Commit

Permalink
make style
Browse files Browse the repository at this point in the history
  • Loading branch information
neomilium committed Jan 31, 2013
1 parent acdde10 commit 519dd8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions contrib/win32/stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion contrib/win32/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion contrib/windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -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."
*/
Expand Down
6 changes: 3 additions & 3 deletions libnfc/log-printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 519dd8f

Please sign in to comment.