[spice-common] protocol: Removed unneeded type specifications

Submitted by Frediano Ziglio on Aug. 14, 2019, 8:48 a.m.

Details

Message ID 20190814084822.27811-1-fziglio@redhat.com
State Accepted
Commit 493475e012ee2c68b2bb6e8ac037847ca2154b7a
Headers show
Series "protocol: Removed unneeded type specifications" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Aug. 14, 2019, 8:48 a.m.
Default type is already uint8_t.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 spice.proto | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/spice.proto b/spice.proto
index 3bbec0c..34ba3c8 100644
--- a/spice.proto
+++ b/spice.proto
@@ -109,7 +109,7 @@  message Empty {
 } @declare;
 
 message Data {
-    uint8 data[] @end @ctype(uint8_t);
+    uint8 data[] @end;
 } @nocopy @declare;
 
 enum8 data_compression_type {
@@ -156,7 +156,7 @@  channel BaseChannel {
     message {
         uint32 id;
         uint64 timestamp;
-        uint8 data[] @ctype(uint8_t) @as_ptr(data_len);
+        uint8 data[] @as_ptr(data_len);
     } @declare ping;
 
     message {

Comments

On 8/14/19 11:48 AM, Frediano Ziglio wrote:
> Default type is already uint8_t.
> 
> Signed-off-by: Frediano Ziglio <fziglio@redhat.com>

Ack.

Uri.

> ---
>   spice.proto | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/spice.proto b/spice.proto
> index 3bbec0c..34ba3c8 100644
> --- a/spice.proto
> +++ b/spice.proto
> @@ -109,7 +109,7 @@ message Empty {
>   } @declare;
>   
>   message Data {
> -    uint8 data[] @end @ctype(uint8_t);
> +    uint8 data[] @end;
>   } @nocopy @declare;
>   
>   enum8 data_compression_type {
> @@ -156,7 +156,7 @@ channel BaseChannel {
>       message {
>           uint32 id;
>           uint64 timestamp;
> -        uint8 data[] @ctype(uint8_t) @as_ptr(data_len);
> +        uint8 data[] @as_ptr(data_len);
>       } @declare ping;
>   
>       message {
>