Use pre-C99 value for unsigned 32-bit integer in Darwin.

This commit is contained in:
2021-05-24 14:14:12 +01:00
parent 2882388946
commit f65d052fd8
2 changed files with 4 additions and 4 deletions

View File

@@ -5,10 +5,10 @@
#ifndef SETTER_SRC_DARWIN_DARWIN_H_ #ifndef SETTER_SRC_DARWIN_DARWIN_H_
#define SETTER_SRC_DARWIN_DARWIN_H_ #define SETTER_SRC_DARWIN_DARWIN_H_
#include <stdint.h> #include <sys/types.h>
void DarwinGetOsInfo(); void DarwinGetOsInfo();
void DarwinPrintStatfsFlags(uint32_t flags); void DarwinPrintStatfsFlags(u_int32_t flags);
void DarwinResourceFork(const char* path); void DarwinResourceFork(const char* path);
void DarwinFileAttributes(const char* path); void DarwinFileAttributes(const char* path);
void DarwinExtendedAttributes(const char* path); void DarwinExtendedAttributes(const char* path);

View File

@@ -23,16 +23,16 @@ Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/ *****************************************************************************/
#include <errno.h> #include <errno.h>
#include <stdint.h>
#include <string.h> #include <string.h>
#include <sys/attr.h> #include <sys/attr.h>
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include "volume.h" #include "volume.h"
#include "../../log.h" #include "../../log.h"
void DarwinPrintStatfsFlags(uint32_t flags) void DarwinPrintStatfsFlags(u_int32_t flags)
{ {
if(flags & MNT_RDONLY) if(flags & MNT_RDONLY)
{ {