X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stat.c;h=ac18363df2899156d7ed8b452b8d6143fcb2c40d;hp=27ffab5e04160343be9781a328a6d760865008d8;hb=6ba4caacaeb4ac2d8e5fc15699bf89f496d59901;hpb=3ddbf5db98280cb09ef74726573b0b3f3b7e62d6 diff --git a/stat.c b/stat.c index 27ffab5e..ac18363d 100644 --- a/stat.c +++ b/stat.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -27,7 +27,7 @@ * \param item_handler Function to call for each complete item. * * \return Negative on errors, the number of bytes _not_ passed to \a - * item_handler. + * item_handler on success. * * Status items are expected in the format used by parser-friendly output mode * of the stat command of para_client/para_audioc. @@ -77,7 +77,5 @@ int for_each_stat_item(char *item_buf, size_t num_bytes, assert(len >= 0 && buf <= item_buf + num_bytes); } assert(len >= 0); - if (len && len != num_bytes) - memmove(item_buf, item_buf + num_bytes - len, len); return len; }