Unverified Commit 92cce8ee by 2xsec Committed by Christian Brauner

fix assignment of signed to bigger unsigned issue

Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com>
parent 14c1904b
......@@ -963,7 +963,8 @@ static int lxc_setup_ttys(struct lxc_conf *conf)
int lxc_allocate_ttys(struct lxc_conf *conf)
{
int i, ret;
size_t i;
int ret;
struct lxc_tty_info *ttys = &conf->ttys;
/* no tty in the configuration */
......@@ -981,7 +982,7 @@ int lxc_allocate_ttys(struct lxc_conf *conf)
tty->slave = -EBADF;
ret = openpty(&tty->master, &tty->slave, NULL, NULL, NULL);
if (ret < 0) {
SYSERROR("Failed to create tty %d", i);
SYSERROR("Failed to create tty %zu", i);
ttys->max = i;
lxc_delete_tty(ttys);
return -ENOTTY;
......@@ -989,7 +990,7 @@ int lxc_allocate_ttys(struct lxc_conf *conf)
ret = ttyname_r(tty->slave, tty->name, sizeof(tty->name));
if (ret < 0) {
SYSERROR("Failed to retrieve name of tty %d slave", i);
SYSERROR("Failed to retrieve name of tty %zu slave", i);
ttys->max = i;
lxc_delete_tty(ttys);
return -ENOTTY;
......
......@@ -677,7 +677,7 @@ bool __criu_check_feature(uint64_t *features_to_check)
pid_t pid;
uint64_t current_bit = 0;
int ret;
int features = *features_to_check;
uint64_t features = *features_to_check;
/* Feature checking is currently always like
* criu check --feature <feature-name>
*/
......
......@@ -396,7 +396,7 @@ extern int btrfs_mount(struct lxc_storage *bdev);
extern int btrfs_umount(struct lxc_storage *bdev);
extern char *get_btrfs_subvol_path(int fd, u64 dir_id, u64 objid, char *name,
int name_len);
u16 name_len);
extern int btrfs_list_get_path_rootid(int fd, u64 *treeid);
extern bool is_btrfs_fs(const char *path);
extern int is_btrfs_subvol(const char *path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment