summaryrefslogtreecommitdiff
path: root/e2fsprogs/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/util.c')
-rw-r--r--e2fsprogs/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/util.c b/e2fsprogs/util.c
index aaee50a..e68c457 100644
--- a/e2fsprogs/util.c
+++ b/e2fsprogs/util.c
@@ -33,12 +33,12 @@ void proceed_question(void)
void check_plausibility(const char *device, int force)
{
int val;
- STRUCT_STAT s;
- val = STAT(device, &s);
+ struct stat s;
+ val = stat(device, &s);
if (force)
return;
if(val == -1)
- bb_perror_msg_and_die("Could not stat %s", device);
+ bb_perror_msg_and_die("cannot stat %s", device);
if (!S_ISBLK(s.st_mode)) {
printf("%s is not a block special device.\n", device);
proceed_question();