[v5,05/21] unix: Move unix_resolve_name declaration on top

Submitted by Cyrill Gorcunov on May 10, 2018, 2:57 p.m.

Details

Message ID 20180510145801.12322-6-gorcunov@gmail.com
State New
Series "Add support of deleted unix sockets"
Headers show

Commit Message

Cyrill Gorcunov May 10, 2018, 2:57 p.m.
This makes code more accurate.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/sk-unix.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index d611e8ef15bc..db784cc38c9c 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -91,6 +91,9 @@  struct unix_sk_desc {
 
 static LIST_HEAD(unix_sockets);
 
+static int unix_resolve_name(int lfd, uint32_t id, struct unix_sk_desc *d,
+			     UnixSkEntry *ue, const struct fd_parms *p);
+
 struct unix_sk_listen_icon {
 	unsigned int			peer_ino;
 	struct unix_sk_desc		*sk_desc;
@@ -314,8 +317,6 @@  static int resolve_rel_name(uint32_t id, struct unix_sk_desc *sk, const struct f
 	return -ENOENT;
 }
 
-static int unix_resolve_name(int lfd, uint32_t id, struct unix_sk_desc *d,
-				UnixSkEntry *ue, const struct fd_parms *p);
 static int dump_one_unix_fd(int lfd, uint32_t id, const struct fd_parms *p)
 {
 	struct unix_sk_desc *sk, *peer;