mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 07:15:31 +00:00
unix: Use uint32_t instead of u32
So the rest of code will match. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
c7b9895567
commit
a7f6f2513d
@@ -244,7 +244,7 @@ static int get_mnt_id(int lfd, int *mnt_id)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int resolve_rel_name(u32 id, struct unix_sk_desc *sk, const struct fd_parms *p, char **pdir)
|
static int resolve_rel_name(uint32_t id, struct unix_sk_desc *sk, const struct fd_parms *p, char **pdir)
|
||||||
{
|
{
|
||||||
const char *dirs[] = { "cwd", "root" };
|
const char *dirs[] = { "cwd", "root" };
|
||||||
struct pstree_item *task;
|
struct pstree_item *task;
|
||||||
@@ -314,9 +314,9 @@ err:
|
|||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int unix_resolve_name(int lfd, u32 id, struct unix_sk_desc *d,
|
static int unix_resolve_name(int lfd, uint32_t id, struct unix_sk_desc *d,
|
||||||
UnixSkEntry *ue, const struct fd_parms *p);
|
UnixSkEntry *ue, const struct fd_parms *p);
|
||||||
static int dump_one_unix_fd(int lfd, u32 id, 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;
|
struct unix_sk_desc *sk, *peer;
|
||||||
UnixSkEntry *ue;
|
UnixSkEntry *ue;
|
||||||
@@ -544,7 +544,7 @@ const struct fdtype_ops unix_dump_ops = {
|
|||||||
.dump = dump_one_unix_fd,
|
.dump = dump_one_unix_fd,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int unix_resolve_name(int lfd, u32 id, struct unix_sk_desc *d,
|
static int unix_resolve_name(int lfd, uint32_t id, struct unix_sk_desc *d,
|
||||||
UnixSkEntry *ue, const struct fd_parms *p)
|
UnixSkEntry *ue, const struct fd_parms *p)
|
||||||
{
|
{
|
||||||
char *name = d->name;
|
char *name = d->name;
|
||||||
@@ -710,7 +710,7 @@ static int unix_collect_one(const struct unix_diag_msg *m,
|
|||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
memcpy(d->icons, nla_data(tb[UNIX_DIAG_ICONS]), len);
|
memcpy(d->icons, nla_data(tb[UNIX_DIAG_ICONS]), len);
|
||||||
d->nr_icons = len / sizeof(u32);
|
d->nr_icons = len / sizeof(uint32_t);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Remember these sockets, we will need them
|
* Remember these sockets, we will need them
|
||||||
|
Reference in New Issue
Block a user