diff options
author | phk <phk@FreeBSD.org> | 2003-04-19 07:42:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-19 07:42:13 +0000 |
commit | e4e245e504fe9e259bf59d5e2a091e18ae67b047 (patch) | |
tree | 3579142a8a2d21dfcf87aca7f52baf9eb20b556d | |
parent | ba5336382cc72e59d472cf162c6f9461f7572964 (diff) | |
download | FreeBSD-src-e4e245e504fe9e259bf59d5e2a091e18ae67b047.zip FreeBSD-src-e4e245e504fe9e259bf59d5e2a091e18ae67b047.tar.gz |
Add prototype for compute_stats() so that libdevstat is WARNS=4 clean.
Spotted by: kris
-rw-r--r-- | lib/libdevstat/devstat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c index 93cb0cb..aa63537 100644 --- a/lib/libdevstat/devstat.c +++ b/lib/libdevstat/devstat.c @@ -47,6 +47,14 @@ __FBSDID("$FreeBSD$"); #include "devstat.h" +int +compute_stats(struct devstat *current, struct devstat *previous, + long double etime, u_int64_t *total_bytes, + u_int64_t *total_transfers, u_int64_t *total_blocks, + long double *kb_per_transfer, long double *transfers_per_second, + long double *mb_per_second, long double *blocks_per_second, + long double *ms_per_transaction); + typedef enum { DEVSTAT_ARG_NOTYPE, DEVSTAT_ARG_UINT64, |