aboutsummaryrefslogtreecommitdiffstats
path: root/timestats.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-12-31 02:01:03 +0000
committerGuy Harris <guy@alum.mit.edu>2004-12-31 02:01:03 +0000
commitea4568dba581cf85bd594b04228290eb70c0fbea (patch)
tree2e221bd5f3c48151a65ea9661894f6d422390235 /timestats.h
parent9522cf61c096dd088814aa931eb1f5ef7552899a (diff)
Make arguments "const *" if the routine doesn't modify the object to
which they point. svn path=/trunk/; revision=12887
Diffstat (limited to 'timestats.h')
-rw-r--r--timestats.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/timestats.h b/timestats.h
index f259859bd7..c4e9223baa 100644
--- a/timestats.h
+++ b/timestats.h
@@ -42,12 +42,17 @@ typedef struct _timestat_t {
} timestat_t;
/* functions */
-extern void get_timedelta(nstime_t *delta, nstime_t *b, nstime_t *a ); /* delta = b - a */
-extern void addtime(nstime_t *sum, nstime_t *a); /* sum += a */
-extern gdouble nstime_to_msec(nstime_t *time); /* converts nstime to gdouble, time base is milli seconds*/
+/* delta = b - a */
+extern void get_timedelta(nstime_t *delta, const nstime_t *b, const nstime_t *a );
-extern void time_stat_update(timestat_t *stats, nstime_t *delta, packet_info *pinfo);
-extern gdouble get_average(nstime_t *sum, guint32 num);
+/* sum += a */
+extern void addtime(nstime_t *sum, const nstime_t *a);
+
+/* converts nstime to gdouble, time base is milli seconds*/
+extern gdouble nstime_to_msec(const nstime_t *time);
+
+extern void time_stat_update(timestat_t *stats, const nstime_t *delta, packet_info *pinfo);
+extern gdouble get_average(const nstime_t *sum, guint32 num);
#endif