diff options
author | Neil Brown <neilb@suse.de> | 2007-12-14 20:13:43 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-12-14 20:13:43 +1100 |
commit | aba69144fd44fc261c943b0cec540751cfcd29bd (patch) | |
tree | 56aebc333f4ebf597efd556381470665ddc14c14 /mdstat.c | |
parent | 08e43379e5e01c8386e7f68f760e11cbe1e42210 (diff) | |
download | mdadm-aba69144fd44fc261c943b0cec540751cfcd29bd.tar.gz mdadm-aba69144fd44fc261c943b0cec540751cfcd29bd.tar.xz mdadm-aba69144fd44fc261c943b0cec540751cfcd29bd.zip |
Remove spaces/tabs from ends of lines.
Diffstat (limited to 'mdstat.c')
-rw-r--r-- | mdstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -161,7 +161,7 @@ struct mdstat_ent *mdstat_read(int hold, int start) ent->dev = strdup(line); ent->devnum = devnum; - + for (w=dl_next(line); w!= line ; w=dl_next(w)) { int l = strlen(w); char *eq; @@ -209,7 +209,7 @@ struct mdstat_ent *mdstat_read(int hold, int start) strncmp(w, "resync", 4)==0) { ent->resync = 1; } else if (ent->percent == -1 && - w[0] >= '0' && + w[0] >= '0' && w[0] <= '9' && w[l-1] == '%') { ent->percent = atoi(w); |