From 63b68eef8b50f3ab196e7a41285e6cc1a654e5b8 Mon Sep 17 00:00:00 2001 From: wangdi Date: Mon, 16 Oct 2006 15:06:13 +0000 Subject: [PATCH] Branch: b_new_cmd replace atoi to strtoul, since atoi can not cast 0xffffffff to -1 --- lustre/tests/ll_dirstripe_verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/ll_dirstripe_verify.c b/lustre/tests/ll_dirstripe_verify.c index a09f023..527fa9a 100644 --- a/lustre/tests/ll_dirstripe_verify.c +++ b/lustre/tests/ll_dirstripe_verify.c @@ -94,7 +94,7 @@ int compare(struct lov_user_md *lum_dir, struct lov_user_md *lum_file1, if (read_proc_entry(tmp_path, buf, sizeof(buf)) < 0) return 5; - stripe_count = atoi(buf); + stripe_count = (int)strtoul(buf, NULL, 10);; } else { stripe_count = (int)lum_dir->lmm_stripe_count; } -- 1.8.3.1