make style
This commit is contained in:
parent
8026d6c047
commit
7b7f506142
1 changed files with 4 additions and 4 deletions
|
@ -177,14 +177,14 @@ conf_devices_load(const char *dirname, nfc_context *context)
|
||||||
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Unable to open directory: %s", dirname);
|
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Unable to open directory: %s", dirname);
|
||||||
} else {
|
} else {
|
||||||
struct dirent *de;
|
struct dirent *de;
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
while ((de = readdir(d)) != NULL ) {
|
while ((de = readdir(d)) != NULL) {
|
||||||
#else
|
#else
|
||||||
struct dirent entry;
|
struct dirent entry;
|
||||||
struct dirent *result;
|
struct dirent *result;
|
||||||
while ((readdir_r(d, &entry, &result) == 0) && (result != NULL)) {
|
while ((readdir_r(d, &entry, &result) == 0) && (result != NULL)) {
|
||||||
de = &entry;
|
de = &entry;
|
||||||
#endif
|
#endif
|
||||||
if (de->d_name[0] != '.') {
|
if (de->d_name[0] != '.') {
|
||||||
const size_t filename_len = strlen(de->d_name);
|
const size_t filename_len = strlen(de->d_name);
|
||||||
const size_t extension_len = strlen(".conf");
|
const size_t extension_len = strlen(".conf");
|
||||||
|
|
Loading…
Reference in a new issue