Quellcode durchsuchen

remove const from data() type

Alistair Veitch vor 10 Jahren
Ursprung
Commit
e41d9d5f93
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      include/grpc/census.h

+ 2 - 2
include/grpc/census.h

@@ -425,9 +425,9 @@ typedef struct {
   /* Return current aggregation data. The caller must cast this object into
      the correct type for the aggregation result. The object returned can be
      freed by using free_data(). */
-  const void *(*data)(const void *aggregation);
+  void *(*data)(const void *aggregation);
   /* free data returned by data() */
-  void (*free_data)(const void *data);
+  void (*free_data)(void *data);
   /* Reset an aggregation to default (zero) values. */
   void (*reset)(void *aggregation);
   /* Merge 'from' aggregation into 'to'. Both aggregations must be compatible */