Skip to content

Commit

Permalink
migration: drop an unused include
Browse files Browse the repository at this point in the history
In the vmstate.h file, we just need a struct name. Use a forward
declaration instead of an include, then adjust the one affected .c file
to include the file that is no longer implicit from the header.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
  • Loading branch information
mstsirkin committed Jun 1, 2018
1 parent 070e9a1 commit 83ee768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/migration/vmstate.h
Expand Up @@ -27,7 +27,7 @@
#ifndef QEMU_VMSTATE_H
#define QEMU_VMSTATE_H

#include "migration/qjson.h"
typedef struct QJSON QJSON;

typedef struct VMStateInfo VMStateInfo;
typedef struct VMStateDescription VMStateDescription;
Expand Down
1 change: 1 addition & 0 deletions migration/savevm.c
Expand Up @@ -55,6 +55,7 @@
#include "io/channel-buffer.h"
#include "io/channel-file.h"
#include "sysemu/replay.h"
#include "qjson.h"

#ifndef ETH_P_RARP
#define ETH_P_RARP 0x8035
Expand Down

0 comments on commit 83ee768

Please sign in to comment.