Skip to content

Commit

Permalink
libhfcommon: include other libhfcommon *.h's without the directory pr…
Browse files Browse the repository at this point in the history
…efix
  • Loading branch information
robertswiecki committed Oct 1, 2023
1 parent 39fb05d commit 89b38c9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions libhfcommon/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
*/

#include "libhfcommon/files.h"
#include "files.h"

#include <arpa/inet.h>
#include <dirent.h>
Expand Down Expand Up @@ -50,9 +50,9 @@
#include <sys/types.h>
#include <unistd.h>

#include "libhfcommon/common.h"
#include "libhfcommon/log.h"
#include "libhfcommon/util.h"
#include "common.h"
#include "log.h"
#include "util.h"

ssize_t files_readFileToBufMax(const char* fname, uint8_t* buf, size_t fileMaxSz) {
int fd = TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_CLOEXEC));
Expand Down
6 changes: 3 additions & 3 deletions libhfcommon/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

#include "libhfcommon/log.h"
#include "log.h"

#include <errno.h>
#include <fcntl.h>
Expand All @@ -35,8 +35,8 @@
#include <time.h>
#include <unistd.h>

#include "libhfcommon/common.h"
#include "libhfcommon/util.h"
#include "common.h"
#include "util.h"

#if defined(_HF_ARCH_LINUX)
#include <sys/syscall.h>
Expand Down
10 changes: 5 additions & 5 deletions libhfcommon/ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
*
*/

#include "libhfcommon/ns.h"
#include "ns.h"

#include "libhfcommon/common.h"
#include "libhfcommon/files.h"
#include "libhfcommon/log.h"
#include "libhfcommon/util.h"
#include "common.h"
#include "files.h"
#include "log.h"
#include "util.h"

#if defined(_HF_ARCH_LINUX)

Expand Down
8 changes: 4 additions & 4 deletions libhfcommon/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
*/

#include "libhfcommon/util.h"
#include "util.h"

#include <ctype.h>
#include <errno.h>
Expand Down Expand Up @@ -69,9 +69,9 @@
#include <time.h>
#include <unistd.h>

#include "libhfcommon/common.h"
#include "libhfcommon/files.h"
#include "libhfcommon/log.h"
#include "common.h"
#include "files.h"
#include "log.h"

void util_ParentDeathSigIfAvail(int signo HF_ATTR_UNUSED) {
#if defined(__FreeBSD__)
Expand Down

0 comments on commit 89b38c9

Please sign in to comment.