re-apply clang-format
This commit is contained in:
@ -33,8 +33,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
|
#include <fcntl.h> // for fcntl
|
||||||
#include <sys/syslimits.h>
|
#include <sys/syslimits.h>
|
||||||
#include <fcntl.h> // for fcntl
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*! \file utils.cpp */
|
/*! \file utils.cpp */
|
||||||
@ -170,7 +170,7 @@ const char *utils::guesspath(char *buf, int len, FILE *fp)
|
|||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
int fd = fileno(fp);
|
int fd = fileno(fp);
|
||||||
char filepath[PATH_MAX];
|
char filepath[PATH_MAX];
|
||||||
if (fcntl(fd,F_GETPATH,filepath) != -1)
|
if (fcntl(fd, F_GETPATH, filepath) != -1)
|
||||||
strncpy(buf, filepath, len - 1);
|
strncpy(buf, filepath, len - 1);
|
||||||
else
|
else
|
||||||
strncpy(buf, "(unknown)", len - 1);
|
strncpy(buf, "(unknown)", len - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user