summaryrefslogtreecommitdiff
path: root/btt/aqd.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <alan.brunelle@hp.com>2009-02-13 12:43:45 -0500
committerAlan D. Brunelle <alan.brunelle@hp.com>2009-02-13 12:43:45 -0500
commitc053af429559c8f4311cd773262ff223097cdcb3 (patch)
treee54213ccebb11d9dafce4d8376e4027983afb48d /btt/aqd.c
parent8f34184f8c7905bb929862d224a7c4969bc9190e (diff)
downloadblktrace-c053af429559c8f4311cd773262ff223097cdcb3.tar.gz
blktrace-c053af429559c8f4311cd773262ff223097cdcb3.tar.bz2
btt general cleanup plus valgrind clean
Lots of general clean up of code, getting interfaces across different files to be similar (all are no alloc/free), and made it valgrind clean. Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com
Diffstat (limited to 'btt/aqd.c')
-rw-r--r--btt/aqd.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/btt/aqd.c b/btt/aqd.c
index f619975..3a45161 100644
--- a/btt/aqd.c
+++ b/btt/aqd.c
@@ -24,14 +24,12 @@
#include "globals.h"
-static struct file_info *aqd_files = NULL;
-
struct aqd_info {
FILE *fp;
int na; /* # active */
};
-void *aqd_init(char *str)
+void *aqd_alloc(char *str)
{
char *oname;
struct aqd_info *ap;
@@ -47,22 +45,17 @@ void *aqd_init(char *str)
perror(oname);
return NULL;
}
- add_file(&aqd_files, ap->fp, oname);
+ add_file(ap->fp, oname);
return ap;
}
-void aqd_exit(void *info)
+void aqd_free(void *info)
{
free(info);
}
-void aqd_clean(void)
-{
- clean_files(&aqd_files);
-}
-
void aqd_issue(void *info, double ts)
{
if (info) {