Express overwrite attribute as a byte in communication protocol
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 14 Jun 2016 16:30:37 +0000 (12:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 14 Jun 2016 16:31:04 +0000 (12:31 -0400)
There is no need for 4 bytes to express a boolean state.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/save-internal.h

index e2528be641d53dacf99d84db760c036f5f918c87..aac213e03fefc94da9e69c5bae53de72411557e8 100644 (file)
@@ -33,7 +33,7 @@ struct lttng_save_session_attr {
        /* Destination of the session configuration. See lttng(1) for URL format. */
        char configuration_url[PATH_MAX];
        /* Overwrite the session configuration file if it exists. */
-       uint32_t overwrite;
+       uint8_t overwrite;
 } LTTNG_PACKED;
 
 #endif /* LTTNG_SAVE_INTERNAL_ABI_H */
This page took 0.026256 seconds and 4 git commands to generate.