aboutsummaryrefslogtreecommitdiff
path: root/src/sensor
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-18 16:22:14 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-18 16:22:14 +0000
commitfb12af8319a84389a536ab2f3735daf3b24f11bd (patch)
tree53e1424149fe8e7d5673e783868fcaa8a6bdbb55 /src/sensor
parentd19064a18f3fcf35c94d7f56485e41fb3425d066 (diff)
downloadgnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.tar.gz
gnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.zip
-use const in peerstore callback
Diffstat (limited to 'src/sensor')
-rw-r--r--src/sensor/gnunet-sensor-profiler.c5
-rw-r--r--src/sensor/gnunet-service-sensor_analysis.c4
-rw-r--r--src/sensor/gnunet-service-sensor_reporting.c6
3 files changed, 10 insertions, 5 deletions
diff --git a/src/sensor/gnunet-sensor-profiler.c b/src/sensor/gnunet-sensor-profiler.c
index cb0b80044..21574774d 100644
--- a/src/sensor/gnunet-sensor-profiler.c
+++ b/src/sensor/gnunet-sensor-profiler.c
@@ -365,8 +365,9 @@ dashboard_started (void *cls, struct GNUNET_TESTBED_Operation *op,
365 * @return #GNUNET_YES to continue iterating, #GNUNET_NO to stop 365 * @return #GNUNET_YES to continue iterating, #GNUNET_NO to stop
366 */ 366 */
367static int 367static int
368peerstore_watch_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, 368peerstore_watch_cb (void *cls,
369 char *emsg) 369 const struct GNUNET_PEERSTORE_Record *record,
370 const char *emsg)
370{ 371{
371 struct PeerInfo *peer = cls; 372 struct PeerInfo *peer = cls;
372 struct GNUNET_SENSOR_DashboardAnomalyEntry *anomaly; 373 struct GNUNET_SENSOR_DashboardAnomalyEntry *anomaly;
diff --git a/src/sensor/gnunet-service-sensor_analysis.c b/src/sensor/gnunet-service-sensor_analysis.c
index b82db4b8e..45eaaa8c1 100644
--- a/src/sensor/gnunet-service-sensor_analysis.c
+++ b/src/sensor/gnunet-service-sensor_analysis.c
@@ -189,7 +189,9 @@ SENSOR_analysis_stop ()
189 * @return #GNUNET_YES 189 * @return #GNUNET_YES
190 */ 190 */
191static int 191static int
192sensor_watcher (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) 192sensor_watcher (void *cls,
193 const struct GNUNET_PEERSTORE_Record *record,
194 const char *emsg)
193{ 195{
194 struct SensorModel *model = cls; 196 struct SensorModel *model = cls;
195 double *val; 197 double *val;
diff --git a/src/sensor/gnunet-service-sensor_reporting.c b/src/sensor/gnunet-service-sensor_reporting.c
index 1c19b38f9..8d69836a0 100644
--- a/src/sensor/gnunet-service-sensor_reporting.c
+++ b/src/sensor/gnunet-service-sensor_reporting.c
@@ -1032,10 +1032,12 @@ handle_anomaly_report (void *cls, const struct GNUNET_PeerIdentity *other,
1032 * @param cls Closure, ValueInfo struct related to the sensor we are watching 1032 * @param cls Closure, ValueInfo struct related to the sensor we are watching
1033 * @param record PEERSTORE new record, NULL if error 1033 * @param record PEERSTORE new record, NULL if error
1034 * @param emsg Error message, NULL if no error 1034 * @param emsg Error message, NULL if no error
1035 * @return GNUNET_YES to continue watching 1035 * @return #GNUNET_YES to continue watching
1036 */ 1036 */
1037static int 1037static int
1038value_watch_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) 1038value_watch_cb (void *cls,
1039 const struct GNUNET_PEERSTORE_Record *record,
1040 const char *emsg)
1039{ 1041{
1040 struct ValueInfo *vi = cls; 1042 struct ValueInfo *vi = cls;
1041 1043