[spice-server] websocket: Include proper type header

Submitted by Frediano Ziglio on July 17, 2019, 11:32 a.m.

Details

Message ID 20190717113245.711-1-fziglio@redhat.com
State Accepted
Commit 642b1683ae77489c9423b57d1b2002ec39b4e662
Headers show
Series "websocket: Include proper type header" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio July 17, 2019, 11:32 a.m.
inttypes.h contains macro for format string while
stdint.h more specifically contains type definitions (like uint8_t).

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/websocket.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/server/websocket.h b/server/websocket.h
index ec452038b..4619836a6 100644
--- a/server/websocket.h
+++ b/server/websocket.h
@@ -18,7 +18,7 @@ 
 #ifndef WEBSOCKET_H_
 #define WEBSOCKET_H_
 
-#include <inttypes.h>
+#include <stdint.h>
 
 #include "sys-socket.h"
 

Comments

On 7/17/19 2:32 PM, Frediano Ziglio wrote:
> inttypes.h contains macro for format string while
> stdint.h more specifically contains type definitions (like uint8_t).
> 
> Signed-off-by: Frediano Ziglio <fziglio@redhat.com>

Ack :)

> ---
>   server/websocket.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/websocket.h b/server/websocket.h
> index ec452038b..4619836a6 100644
> --- a/server/websocket.h
> +++ b/server/websocket.h
> @@ -18,7 +18,7 @@
>   #ifndef WEBSOCKET_H_
>   #define WEBSOCKET_H_
>   
> -#include <inttypes.h>
> +#include <stdint.h>
>   
>   #include "sys-socket.h"
>   
>