This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE3 - libgfs2: Remove a typedef that was only used once
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Thu, 19 Feb 2009 10:08:59 +0000 (UTC)
- Subject: cluster: STABLE3 - libgfs2: Remove a typedef that was only used once
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=44c97d5c71881017888e5cb651428242691c5a8b
Commit: 44c97d5c71881017888e5cb651428242691c5a8b
Parent: a5f2bc8d9ac7f1b0cf78fd7827891d22407961f2
Author: Steven Whitehouse <swhiteho@redhat.com>
AuthorDate: Mon Jan 26 13:55:48 2009 +0000
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Thu Feb 19 10:59:55 2009 +0100
libgfs2: Remove a typedef that was only used once
... and also deprecate another function.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
gfs2/libgfs2/libgfs2.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/gfs2/libgfs2/libgfs2.h b/gfs2/libgfs2/libgfs2.h
index 590aa4e..9f48b93 100644
--- a/gfs2/libgfs2/libgfs2.h
+++ b/gfs2/libgfs2/libgfs2.h
@@ -104,7 +104,7 @@ static __inline__ __attribute__((deprecated)) void do_write(int fd, const void *
#define DIV_RU(x, y) (((x) + (y) - 1) / (y))
-static __inline__ uint64_t do_div_i(uint64_t *num, unsigned int den)
+static __inline__ __attribute__((deprecated)) uint64_t do_div_i(uint64_t *num, unsigned int den)
{
unsigned int m = *num % den;
*num /= den;
@@ -124,7 +124,6 @@ struct gfs2_bitmap
uint32_t bi_start; /* The position of the first byte in this block */
uint32_t bi_len; /* The number of bytes in this block */
};
-typedef struct gfs2_bitmap gfs2_bitmap_t;
struct rgrp_list {
osi_list_t list;
@@ -134,7 +133,7 @@ struct rgrp_list {
struct gfs2_rindex ri;
struct gfs2_rgrp rg;
- gfs2_bitmap_t *bits;
+ struct gfs2_bitmap *bits;
struct gfs2_buffer_head **bh;
};