mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-19 22:46:36 -05:00
Beautification with unscrustify
This commit is contained in:
parent
1166d9dcea
commit
3e62e22411
5 changed files with 9 additions and 9 deletions
|
|
@ -607,11 +607,11 @@ static int devuuid_darwin(const char* path, char* uuid, size_t uuid_size)
|
|||
*uuid = 0;
|
||||
|
||||
path_apple = CFStringCreateWithCString(kCFAllocatorDefault, path, kCFStringEncodingUTF8);
|
||||
if (!path_apple)
|
||||
if (!path_apple)
|
||||
goto bail;
|
||||
|
||||
session = DASessionCreate(kCFAllocatorDefault);
|
||||
if (!session)
|
||||
if (!session)
|
||||
goto bail;
|
||||
|
||||
path_appler = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, path_apple, kCFURLPOSIXPathStyle, false);
|
||||
|
|
@ -645,7 +645,7 @@ static int devuuid_darwin(const char* path, char* uuid, size_t uuid_size)
|
|||
if (description) {
|
||||
/* key might not exist for NTFS/ExFAT on some drivers */
|
||||
const void* value = (CFUUIDRef)CFDictionaryGetValue(description, kDADiskDescriptionVolumeUUIDKey);
|
||||
CFStringRef uuid_string = NULL;
|
||||
CFStringRef uuid_string = NULL;
|
||||
|
||||
if (value) {
|
||||
if (CFGetTypeID(value) == CFUUIDGetTypeID()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue