diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /libbb/find_root_device.c | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) | |
download | busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2 busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'libbb/find_root_device.c')
-rw-r--r-- | libbb/find_root_device.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/find_root_device.c b/libbb/find_root_device.c index 836ce44d5..81824a216 100644 --- a/libbb/find_root_device.c +++ b/libbb/find_root_device.c | |||
@@ -2,7 +2,7 @@ | |||
2 | /* | 2 | /* |
3 | * Utility routines. | 3 | * Utility routines. |
4 | * | 4 | * |
5 | * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
@@ -35,7 +35,7 @@ extern char *find_real_root_device_name(const char* name) | |||
35 | char *fileName = NULL; | 35 | char *fileName = NULL; |
36 | dev_t dev; | 36 | dev_t dev; |
37 | 37 | ||
38 | if (stat("/", &rootStat) != 0) | 38 | if (stat("/", &rootStat) != 0) |
39 | bb_perror_msg("could not stat '/'"); | 39 | bb_perror_msg("could not stat '/'"); |
40 | else { | 40 | else { |
41 | /* This check is here in case they pass in /dev name */ | 41 | /* This check is here in case they pass in /dev name */ |
@@ -45,7 +45,7 @@ extern char *find_real_root_device_name(const char* name) | |||
45 | dev = rootStat.st_dev; | 45 | dev = rootStat.st_dev; |
46 | 46 | ||
47 | dir = opendir("/dev"); | 47 | dir = opendir("/dev"); |
48 | if (!dir) | 48 | if (!dir) |
49 | bb_perror_msg("could not open '/dev'"); | 49 | bb_perror_msg("could not open '/dev'"); |
50 | else { | 50 | else { |
51 | while((entry = readdir(dir)) != NULL) { | 51 | while((entry = readdir(dir)) != NULL) { |
@@ -59,9 +59,9 @@ extern char *find_real_root_device_name(const char* name) | |||
59 | 59 | ||
60 | /* Some char devices have the same dev_t as block | 60 | /* Some char devices have the same dev_t as block |
61 | * devices, so make sure this is a block device */ | 61 | * devices, so make sure this is a block device */ |
62 | if (stat(fileName, &statBuf) == 0 && | 62 | if (stat(fileName, &statBuf) == 0 && |
63 | S_ISBLK(statBuf.st_mode)!=0 && | 63 | S_ISBLK(statBuf.st_mode)!=0 && |
64 | statBuf.st_rdev == dev) | 64 | statBuf.st_rdev == dev) |
65 | break; | 65 | break; |
66 | free(fileName); | 66 | free(fileName); |
67 | fileName=NULL; | 67 | fileName=NULL; |