From baf330c1024cc324c631594ab1a56f30d240b9fa Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Mon, 12 Jan 2009 17:28:53 -0800 Subject: Use enum type in pb_protocol_create_message 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 Signed-off-by: Jeremy Kerr --- lib/pb-protocol/pb-protocol.c | 2 +- lib/pb-protocol/pb-protocol.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/pb-protocol') diff --git a/lib/pb-protocol/pb-protocol.c b/lib/pb-protocol/pb-protocol.c index ffa2c1b..4981e95 100644 --- 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, 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 *message; diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h index ce9c96b..399c824 100644 --- a/lib/pb-protocol/pb-protocol.h +++ b/lib/pb-protocol/pb-protocol.h @@ -52,7 +52,7 @@ int pb_protocol_serialise_device(struct device *dev, char *buf, int buf_len); 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); -- cgit v1.1