[Spice-devel,spice-server] Move some include from header to source

Submitted by Frediano Ziglio on Nov. 28, 2016, 2:27 p.m.

Details

Message ID 20161128142710.21678-1-fziglio@redhat.com
State Accepted
Commit f73e8319c60bff76a582282e0df6a103c4c21938
Headers show
Series "Move some include from header to source" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Nov. 28, 2016, 2:27 p.m.
Now that RedStatFile is private there is no need
to include some headers in stat-file.h.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/stat-file.c | 2 ++
 server/stat-file.h | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/stat-file.c b/server/stat-file.c
index d1e25ce..57b6110 100644
--- a/server/stat-file.c
+++ b/server/stat-file.c
@@ -25,7 +25,9 @@ 
 #include <unistd.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <pthread.h>
 #include <sys/mman.h>
+#include <spice/stats.h>
 #include <common/log.h>
 #include <common/mem.h>
 
diff --git a/server/stat-file.h b/server/stat-file.h
index 903b68b..0affb90 100644
--- a/server/stat-file.h
+++ b/server/stat-file.h
@@ -18,8 +18,7 @@ 
 #ifndef STAT_FILE_H_
 #define STAT_FILE_H_
 
-#include <pthread.h>
-#include <spice/stats.h>
+#include <stdint.h>
 
 typedef uint32_t StatNodeRef;
 #define INVALID_STAT_REF (~(StatNodeRef)0)

Comments

Acked-by: Jonathon Jongsma <jjongsma@redhat.com>


On Mon, 2016-11-28 at 14:27 +0000, Frediano Ziglio wrote:
> Now that RedStatFile is private there is no need
> to include some headers in stat-file.h.
> 
> Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
> ---
>  server/stat-file.c | 2 ++
>  server/stat-file.h | 3 +--
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/server/stat-file.c b/server/stat-file.c
> index d1e25ce..57b6110 100644
> --- a/server/stat-file.c
> +++ b/server/stat-file.c
> @@ -25,7 +25,9 @@
>  #include <unistd.h>
>  #include <errno.h>
>  #include <fcntl.h>
> +#include <pthread.h>
>  #include <sys/mman.h>
> +#include <spice/stats.h>
>  #include <common/log.h>
>  #include <common/mem.h>
>  
> diff --git a/server/stat-file.h b/server/stat-file.h
> index 903b68b..0affb90 100644
> --- a/server/stat-file.h
> +++ b/server/stat-file.h
> @@ -18,8 +18,7 @@
>  #ifndef STAT_FILE_H_
>  #define STAT_FILE_H_
>  
> -#include <pthread.h>
> -#include <spice/stats.h>
> +#include <stdint.h>
>  
>  typedef uint32_t StatNodeRef;
>  #define INVALID_STAT_REF (~(StatNodeRef)0)