Commit 53049d33 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: refactor parser_byteStream_get

Fix this CamelCase function name:
parser_byteStream_get => parser_byte_stream_get

Update all references to use the fixed name. Fix the spacing in the typecast.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b2d97e4b
...@@ -165,14 +165,13 @@ parser_simpleString_get(struct parser_context *ctx) ...@@ -165,14 +165,13 @@ parser_simpleString_get(struct parser_context *ctx)
/* Obtain a copy of the buffer in the payload area. /* Obtain a copy of the buffer in the payload area.
*/ */
void * void *parser_byte_stream_get(struct parser_context *ctx, ulong *nbytes)
parser_byteStream_get(struct parser_context *ctx, ulong *nbytes)
{ {
if (!ctx->byte_stream) if (!ctx->byte_stream)
return NULL; return NULL;
if (nbytes) if (nbytes)
*nbytes = ctx->param_bytes; *nbytes = ctx->param_bytes;
return (void *) ctx->data; return (void *)ctx->data;
} }
uuid_le uuid_le
......
...@@ -40,7 +40,7 @@ void *parser_param_get(struct parser_context *ctx, char *nam, int namesize); ...@@ -40,7 +40,7 @@ void *parser_param_get(struct parser_context *ctx, char *nam, int namesize);
void *parser_string_get(struct parser_context *ctx); void *parser_string_get(struct parser_context *ctx);
uuid_le parser_id_get(struct parser_context *ctx); uuid_le parser_id_get(struct parser_context *ctx);
char *parser_simpleString_get(struct parser_context *ctx); char *parser_simpleString_get(struct parser_context *ctx);
void *parser_byteStream_get(struct parser_context *ctx, ulong *nbytes); void *parser_byte_stream_get(struct parser_context *ctx, ulong *nbytes);
void parser_done(struct parser_context *ctx); void parser_done(struct parser_context *ctx);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment