summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2018-05-25 19:46:34 +0100
committerFrediano Ziglio <fziglio@redhat.com>2018-05-28 16:27:12 +0100
commite8ab5856a116f6b7b9bd28781fcf2f685cc6645f (patch)
tree3c62d847ffef550e1f32c36228b5f5d541c0a4ec
parent0de788aa6175fa6035b9f79a7dcfda8b98cd1e6f (diff)
file_xfer: Remove too C syntax for C++
In C++ simply declaring the struct add the structure name to the global namespace, no needs for additional typedef. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r--vdagent/file_xfer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdagent/file_xfer.h b/vdagent/file_xfer.h
index 029d0e7..747c29c 100644
--- a/vdagent/file_xfer.h
+++ b/vdagent/file_xfer.h
@@ -21,7 +21,7 @@
#include <map>
#include "vdcommon.h"
-typedef struct FileXferTask {
+struct FileXferTask {
FileXferTask(HANDLE _handle, uint64_t _size, const TCHAR* _name):
handle(_handle), size(_size), pos(0) {
// FIXME: should raise an error if name is too long..
@@ -36,7 +36,7 @@ typedef struct FileXferTask {
TCHAR name[MAX_PATH];
void cancel();
-} FileXferTask;
+};
typedef std::map<uint32_t, FileXferTask*> FileXferTasks;