xml parser NEW opaque parsing of invalid values/lists
diff --git a/src/printer_internal.h b/src/printer_internal.h
index 25b0afb..139a5bc 100644
--- a/src/printer_internal.h
+++ b/src/printer_internal.h
@@ -55,7 +55,7 @@
 
     size_t printed;      /**< Number of printed bytes */
 
-    struct ly_ctx *ctx;  /**< libyang context for error logging */
+    const struct ly_ctx *ctx;   /**< libyang context for error logging */
     LY_ERR status;       /**< current status of the printer */
 };