projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server: Fix brown paper bag bug in generic_com_on().
[paraslash.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index 27ffab5e04160343be9781a328a6d760865008d8..43e7998ad3fababb6ed74e18b40ad34f99b38244 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-1,8
+1,4
@@
-/*
- * Copyright (C) 2005-2009 Andre Noll <maan@systemlinux.org>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
+/* Copyright (C) 2005 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
/**
* \file stat.c Functions used for sending/receiving the status of para_server
/**
* \file stat.c Functions used for sending/receiving the status of para_server
@@
-27,7
+23,7
@@
* \param item_handler Function to call for each complete item.
*
* \return Negative on errors, the number of bytes _not_ passed to \a
* \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.
*
* Status items are expected in the format used by parser-friendly output mode
* of the stat command of para_client/para_audioc.
@@
-77,7
+73,5
@@
int for_each_stat_item(char *item_buf, size_t num_bytes,
assert(len >= 0 && buf <= item_buf + num_bytes);
}
assert(len >= 0);
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;
}
return len;
}