From patchwork Tue Jan 13 01:28:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 18130 X-Patchwork-Delegate: jk@ozlabs.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 70FC047540 for ; Tue, 13 Jan 2009 12:33:50 +1100 (EST) X-Original-To: cbe-oss-dev@ozlabs.org Delivered-To: cbe-oss-dev@ozlabs.org Received: from VA3EHSOBE002.bigfish.com (outbound-va3.frontbridge.com [216.32.180.16]) by ozlabs.org (Postfix) with ESMTP id 618FDDE2B3; Tue, 13 Jan 2009 12:32:34 +1100 (EST) Received: from mail18-va3-R.bigfish.com (10.7.14.245) by VA3EHSOBE002.bigfish.com (10.7.40.22) with Microsoft SMTP Server id 8.1.291.1; Tue, 13 Jan 2009 01:32:28 +0000 Received: from mail18-va3 (localhost.localdomain [127.0.0.1]) by mail18-va3-R.bigfish.com (Postfix) with ESMTP id 39121BD80CC; Tue, 13 Jan 2009 01:32:28 +0000 (UTC) X-BigFish: VPS7(zzzzzzz2fh6bh68o) X-Spam-TCS-SCL: 7:0 X-FB-SS: 5, Received: by mail18-va3 (MessageSwitch) id 1231810346655313_6867; Tue, 13 Jan 2009 01:32:26 +0000 (UCT) Received: from mail8.fw-bc.sony.com (mail8.fw-bc.sony.com [160.33.98.75]) by mail18-va3.bigfish.com (Postfix) with ESMTP id 7E9C9C5004E; Tue, 13 Jan 2009 01:32:26 +0000 (UTC) Received: from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com [43.134.1.211]) by mail8.fw-bc.sony.com (8.14.2/8.14.2) with ESMTP id n0D1WPJl025337; Tue, 13 Jan 2009 01:32:26 GMT Received: from ussdixhub21.spe.sony.com (ussdixhub21.spe.sony.com [43.130.141.76]) by mail3.sjc.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id n0D1WPb3016582; Tue, 13 Jan 2009 01:32:25 GMT Received: from USSDIXRG02.am.sony.com (43.130.140.32) by ussdixhub21.spe.sony.com (43.130.141.76) with Microsoft SMTP Server id 8.1.291.1; Mon, 12 Jan 2009 17:32:25 -0800 Received: from ussdixms03.am.sony.com ([43.130.140.23]) by USSDIXRG02.am.sony.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 12 Jan 2009 17:32:25 -0800 Received: from [192.168.1.10] ([43.135.148.226]) by ussdixms03.am.sony.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 12 Jan 2009 17:32:24 -0800 Message-ID: <496BEE55.7090909@am.sony.com> Date: Mon, 12 Jan 2009 17:28:53 -0800 From: Geoff Levand User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Jeremy Kerr References: <496BEDF0.3080105@am.sony.com> In-Reply-To: <496BEDF0.3080105@am.sony.com> X-Enigmail-Version: 0.95.7 X-OriginalArrivalTime: 13 Jan 2009 01:32:24.0871 (UTC) FILETIME=[C99C6B70:01C9751E] X-SEL-encryption-scan: scanned Cc: cbe-oss-dev@ozlabs.org Subject: [Cbe-oss-dev] [patch 2/5] petitboot: Use enum type in pb_protocol_create_message X-BeenThere: cbe-oss-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Discussion about Open Source Software for the Cell Broadband Engine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org To better illustrate the usage of pb_protocol_create_message(), change the type of the arg action from int to enum pb_protocol_action. Signed-off-by: Geoff Levand --- lib/pb-protocol/pb-protocol.c | 2 +- lib/pb-protocol/pb-protocol.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/lib/pb-protocol/pb-protocol.c +++ b/lib/pb-protocol/pb-protocol.c @@ -201,7 +201,7 @@ int pb_protocol_write_message(int fd, st } struct pb_protocol_message *pb_protocol_create_message(void *ctx, - int action, int payload_len) + enum pb_protocol_action action, int payload_len) { struct pb_protocol_message *message; --- a/lib/pb-protocol/pb-protocol.h +++ b/lib/pb-protocol/pb-protocol.h @@ -52,7 +52,7 @@ int pb_protocol_serialise_device(struct int pb_protocol_write_message(int fd, struct pb_protocol_message *message); struct pb_protocol_message *pb_protocol_create_message(void *ctx, - int action, int payload_len); + enum pb_protocol_action action, int payload_len); struct pb_protocol_message *pb_protocol_read_message(void *ctx, int fd);