From: wangdi Date: Mon, 16 Oct 2006 15:06:13 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~491 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=63b68eef8b50f3ab196e7a41285e6cc1a654e5b8;p=fs%2Flustre-release.git Branch: b_new_cmd replace atoi to strtoul, since atoi can not cast 0xffffffff to -1 --- 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; }