@@ -16,13 +16,13 @@
static cmdinfo_t print_cmd;
-fileio_t *filetable;
+struct fileio *filetable;
int filecount;
-fileio_t *file;
+struct fileio *file;
static void
print_fileio(
- fileio_t *file,
+ struct fileio *file,
int index,
int braces)
{
@@ -98,8 +98,8 @@ addfile(
}
/* Extend the table of currently open files */
- filetable = (fileio_t *)realloc(filetable, /* growing */
- ++filecount * sizeof(fileio_t));
+ filetable = (struct fileio *)realloc(filetable, /* growing */
+ ++filecount * sizeof(struct fileio));
if (!filetable) {
perror("realloc");
filecount = 0;
@@ -14,17 +14,17 @@
#include "space.h"
#include "input.h"
-typedef struct histent
+struct histent
{
long long low;
long long high;
long long count;
long long blocks;
-} histent_t;
+};
static int agcount;
static xfs_agnumber_t *aglist;
-static histent_t *hist;
+static struct histent *hist;
static int dumpflag;
static long long equalsize;
static long long multsize;
@@ -82,7 +82,7 @@ hcmp(
const void *a,
const void *b)
{
- return ((histent_t *)a)->low - ((histent_t *)b)->low;
+ return ((struct histent *)a)->low - ((struct histent *)b)->low;
}
static void
@@ -6,16 +6,16 @@
#ifndef XFS_SPACEMAN_SPACE_H_
#define XFS_SPACEMAN_SPACE_H_
-typedef struct fileio {
+struct fileio {
struct xfs_fsop_geom geom; /* XFS filesystem geometry */
struct fs_path fs_path; /* XFS path information */
char *name; /* file name at time of open */
int fd; /* open file descriptor */
-} fileio_t;
+};
-extern fileio_t *filetable; /* open file table */
+extern struct fileio *filetable; /* open file table */
extern int filecount; /* number of open files */
-extern fileio_t *file; /* active file in file table */
+extern struct fileio *file; /* active file in file table */
extern int openfile(char *, struct xfs_fsop_geom *, struct fs_path *);
extern int addfile(char *, int , struct xfs_fsop_geom *, struct fs_path *);