Skip to content

Commit

Permalink
* RM [log] Remove unused header include
Browse files Browse the repository at this point in the history
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
  • Loading branch information
RanMaoyi authored and JaylinYu committed Jan 23, 2024
1 parent 3f8fc38 commit 378a6f9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/nng/supplemental/nanolib/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ extern "C" {
#include <time.h>

#include "nng/nng.h"
#include "core/defs.h"

#define LOG_VERSION "0.2.1"

Expand Down
2 changes: 1 addition & 1 deletion include/nng/supplemental/util/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ NNG_DECL uint32_t nng_random(void);
// by reliable, bidirectional, byte streams. This will return NNG_ENOTSUP
// if the platform lacks support for this. The argument is a pointer
// to an array of file descriptors (or HANDLES or similar).
NNG_DECL int nng_socket_pair(int *);
NNG_DECL int nng_socket_pair(int [2]);

//
// Atomics support. This will evolve over time.
Expand Down
2 changes: 1 addition & 1 deletion src/core/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ extern int nni_plat_udp_sockname(nni_plat_udp *, nni_sockaddr *);
// in APIs to transport file descriptors, or across a fork/exec boundary (so
// that child processes may use these with socket to inherit a socket that is
// connected to the parent.)
extern int nni_socket_pair(int[2]);
extern int nni_socket_pair(int [2]);

//
// File/Store Support
Expand Down
2 changes: 1 addition & 1 deletion src/supplemental/util/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ nng_random(void)
}

int
nng_socket_pair(int *fds)
nng_socket_pair(int fds[2])
{
return (nni_socket_pair(fds));
}
Expand Down

0 comments on commit 378a6f9

Please sign in to comment.