white space and quiet warning

This commit is contained in:
Isaac Connor 2018-11-17 10:39:42 -05:00
parent d99ee73ad3
commit 87140ecdb5
2 changed files with 33 additions and 33 deletions

View File

@ -174,7 +174,7 @@ Event::Event(
Error("Can't mkdir %s: %s", path, strerror(errno));
}
} else {
path_ptr += snprintf(path, sizeof(path), "/%" PRIu64, id);
snprintf(path, sizeof(path), "/%" PRIu64, id);
if ( mkdir(path, 0755) ) {
if ( errno != EEXIST )
Error("Can't mkdir %s: %s", path, strerror(errno));