diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-01-12 17:28:53 -0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-02-01 11:15:00 +1100 |
commit | baf330c1024cc324c631594ab1a56f30d240b9fa (patch) | |
tree | 6b552180c679673eec00524fd6b94952555772a6 /lib | |
parent | e44d91609bbf80564faada9472d408509d44a9fd (diff) | |
download | petitboot-baf330c1024cc324c631594ab1a56f30d240b9fa.zip petitboot-baf330c1024cc324c631594ab1a56f30d240b9fa.tar.gz |
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 <geoffrey.levand@am.sony.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pb-protocol/pb-protocol.c | 2 | ||||
-rw-r--r-- | lib/pb-protocol/pb-protocol.h | 2 |
2 files changed, 2 insertions, 2 deletions
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); |