From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6049 invoked by alias); 26 Jan 2009 14:58:52 -0000 Received: (qmail 6041 invoked by alias); 26 Jan 2009 14:58:51 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_MX,SPF_HELO_PASS X-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_MX,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on bastion.fedora.phx.redhat.com Subject: gfs2-utils: master - libgfs2: Remove a typedef that was only used once To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: gfs2-utils.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: f262c6004bef02c525bd672fdbf98af59f468cff X-Git-Newrev: 77edaa48803d1a33becea7cf1e5a3e674d01cb99 From: Steven Whitehouse Message-Id: <20090126145625.408CF12055C@lists.fedorahosted.org> Date: Mon, 26 Jan 2009 14:58:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00274.txt.bz2 Gitweb: http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=77edaa48803d1a33becea7cf1e5a3e674d01cb99 Commit: 77edaa48803d1a33becea7cf1e5a3e674d01cb99 Parent: f262c6004bef02c525bd672fdbf98af59f468cff Author: Steven Whitehouse AuthorDate: Mon Jan 26 13:55:48 2009 +0000 Committer: Steven Whitehouse CommitterDate: Mon Jan 26 13:55:48 2009 +0000 libgfs2: Remove a typedef that was only used once ... and also deprecate another function. Signed-off-by: Steven Whitehouse --- 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; };