From 060310d3dd7c4a4366a86d42b31d4c906e95b9f9 Mon Sep 17 00:00:00 2001 From: girish Date: Tue, 29 Jul 2008 11:23:00 +0000 Subject: [PATCH] Cleanup compiler warnings. b=15981 i=adilger i=robert.read --- lustre/ptlrpc/llog_client.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lustre/ptlrpc/llog_client.c b/lustre/ptlrpc/llog_client.c index b6a5dcd..1579e22 100644 --- a/lustre/ptlrpc/llog_client.c +++ b/lustre/ptlrpc/llog_client.c @@ -92,7 +92,7 @@ static int llog_client_create(struct llog_ctxt *ctxt, struct llog_handle **res, struct llogd_body *body; struct llog_handle *handle; struct ptlrpc_request *req = NULL; - int size[3] = { sizeof(struct ptlrpc_body), sizeof(req_body) }; + __u32 size[3] = { sizeof(struct ptlrpc_body), sizeof(req_body) }; char *bufs[3] = { NULL, (char*)&req_body }; int bufcount = 2; int rc; @@ -152,7 +152,7 @@ static int llog_client_destroy(struct llog_handle *loghandle) struct obd_import *imp; struct ptlrpc_request *req = NULL; struct llogd_body *body; - int size[] = { sizeof(struct ptlrpc_body), sizeof(*body) }; + __u32 size[] = { sizeof(struct ptlrpc_body), sizeof(*body) }; int rc; ENTRY; @@ -184,7 +184,7 @@ static int llog_client_next_block(struct llog_handle *loghandle, struct ptlrpc_request *req = NULL; struct llogd_body *body; void * ptr; - int size[3] = { sizeof(struct ptlrpc_body), sizeof(*body) }; + __u32 size[3] = { sizeof(struct ptlrpc_body), sizeof(*body) }; int rc; ENTRY; @@ -242,7 +242,7 @@ static int llog_client_prev_block(struct llog_handle *loghandle, struct ptlrpc_request *req = NULL; struct llogd_body *body; void * ptr; - int size[3] = { sizeof(struct ptlrpc_body), sizeof(*body) }; + __u32 size[3] = { sizeof(struct ptlrpc_body), sizeof(*body) }; int rc; ENTRY; @@ -294,8 +294,8 @@ static int llog_client_read_header(struct llog_handle *handle) struct llogd_body *body; struct llog_log_hdr *hdr; struct llog_rec_hdr *llh_hdr; - int size[2] = { sizeof(struct ptlrpc_body), sizeof(*body) }; - int repsize[2] = { sizeof(struct ptlrpc_body), sizeof(*hdr) }; + __u32 size[2] = { sizeof(struct ptlrpc_body), sizeof(*body) }; + __u32 repsize[2] = { sizeof(struct ptlrpc_body), sizeof(*hdr) }; int rc; ENTRY; -- 1.8.3.1