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/pb-protocol/pb-protocol.c | |
parent | e44d91609bbf80564faada9472d408509d44a9fd (diff) | |
download | talos-petitboot-baf330c1024cc324c631594ab1a56f30d240b9fa.tar.gz talos-petitboot-baf330c1024cc324c631594ab1a56f30d240b9fa.zip |
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/pb-protocol/pb-protocol.c')
-rw-r--r-- | lib/pb-protocol/pb-protocol.c | 2 |
1 files changed, 1 insertions, 1 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; |