summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump-parse.c
diff options
context:
space:
mode:
authorOndrej Oprala2013-11-08 17:13:12 +0100
committerKarel Zak2013-12-02 13:44:23 +0100
commitbb8ae572ef37a248c3f1b134182152446241400b (patch)
treef23177194b62e79f7e5b06ff0f53d20cad7a3e2f /text-utils/hexdump-parse.c
parenthexdump: rename struct _fu to struct hexdump_fu and remove its typedef (diff)
downloadkernel-qcow2-util-linux-bb8ae572ef37a248c3f1b134182152446241400b.tar.gz
kernel-qcow2-util-linux-bb8ae572ef37a248c3f1b134182152446241400b.tar.xz
kernel-qcow2-util-linux-bb8ae572ef37a248c3f1b134182152446241400b.zip
hexdump: rename struct _fs to struct hexdump_fs and remove its typedef
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Diffstat (limited to 'text-utils/hexdump-parse.c')
-rw-r--r--text-utils/hexdump-parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/text-utils/hexdump-parse.c b/text-utils/hexdump-parse.c
index e67fcd20d..291c620f9 100644
--- a/text-utils/hexdump-parse.c
+++ b/text-utils/hexdump-parse.c
@@ -83,11 +83,11 @@ void addfile(char *name)
void add_fmt(const char *fmt)
{
const char *p, *savep;
- FS *tfs;
+ struct hexdump_fs *tfs;
struct hexdump_fu *tfu;
/* Start new linked list of format units. */
- tfs = xcalloc(1, sizeof(FS));
+ tfs = xcalloc(1, sizeof(struct hexdump_fs));
INIT_LIST_HEAD(&tfs->fslist);
INIT_LIST_HEAD(&tfs->fulist);
list_add_tail(&tfs->fslist, &fshead);
@@ -154,7 +154,7 @@ void add_fmt(const char *fmt)
static const char *spec = ".#-+ 0123456789";
-int block_size(FS *fs)
+int block_size(struct hexdump_fs *fs)
{
struct hexdump_fu *fu;
int bcnt, prec, cursize = 0;
@@ -201,7 +201,7 @@ int block_size(FS *fs)
return(cursize);
}
-void rewrite_rules(FS *fs)
+void rewrite_rules(struct hexdump_fs *fs)
{
enum { NOTOKAY, USEBCNT, USEPREC } sokay;
struct hexdump_pr *pr;