#include <minix/u64.h>
#include <sys/ioc_block.h>
+static btrace_entry buf[BTBUF_SIZE];
+
static void usage(char *name)
{
printf("usage:\n"
perror("ioctl(BIOCTRACECTL)");
size = 0;
- ioctl(devfd, BIOCTRACEBUF, &size);
+ (void) ioctl(devfd, BIOCTRACEBUF, &size);
exit(EXIT_FAILURE);
}
static void btrace_stop(char *device, char *file)
{
- btrace_entry buf[BTBUF_SIZE];
int r, ctl, devfd, outfd;
size_t size;
static void btrace_dump(char *file)
{
- btrace_entry buf[BTBUF_SIZE];
int i, r, infd;
if ((infd = open(file, O_RDONLY)) < 0) {