mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 19:13:44 +00:00
make style
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user