1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

since DEV_NAME() is used when calling, this check is needless

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1274 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Phil 2008-12-06 19:10:27 +00:00
parent c4b98f0762
commit d1b139f8e2
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,8 @@
# $Id$ # $Id$
2008-12-06
* Removed duplicate sanity check for diskio
2008-11-30 2008-11-30
* Added runtime debugging output * Added runtime debugging output

View File

@ -86,12 +86,8 @@ struct diskio_stat *prepare_diskio_stat(const char *s)
free(new->dev); free(new->dev);
new->dev = 0; new->dev = 0;
} }
if (strncmp(s, "/dev/", 5) == 0) { new->dev = strndup(s, text_buffer_size);
// supplied a /dev/device arg, so cut off the /dev part
new->dev = strndup(s + 5, text_buffer_size);
} else {
new->dev = strndup(s, text_buffer_size);
}
/* /*
* check that device actually exists * check that device actually exists
*/ */