Port: Use LTTNG_NAME_MAX instead of NAME_MAX
[lttng-tools.git] / include / lttng / snapshot-internal.h
index a14564b3b03c4bc9a1ccd195f7fbce336a0b9f12..b7391c228f084b1e7b732282010b763da1c48dd0 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <limits.h>
 #include <stdint.h>
 
 #include <limits.h>
 #include <stdint.h>
+#include <lttng/constant.h>
 
 /*
  * Object used for the snapshot API. This is opaque to the public library.
 
 /*
  * Object used for the snapshot API. This is opaque to the public library.
@@ -37,7 +38,7 @@ struct lttng_snapshot_output {
         */
        uint64_t max_size;
        /* Name of the output so it can be recognized easily when listing them. */
         */
        uint64_t max_size;
        /* Name of the output so it can be recognized easily when listing them. */
-       char name[NAME_MAX];
+       char name[LTTNG_NAME_MAX];
        /* Destination of the output. See lttng(1) for URL format. */
        char ctrl_url[PATH_MAX];
        /* Destination of the output. See lttng(1) for URL format. */
        /* Destination of the output. See lttng(1) for URL format. */
        char ctrl_url[PATH_MAX];
        /* Destination of the output. See lttng(1) for URL format. */
This page took 0.024348 seconds and 5 git commands to generate.