]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/timer.c
Updated years in all README's.
[libucw.git] / ucw / timer.c
index 54d8277999b6791ace44faee5ff585e254dc6509..41f51f94d7e3df48842b333d0ffe141f056d4327 100644 (file)
@@ -36,8 +36,8 @@ get_timer(timestamp_t *timer)
 }
 
 uns
-switch_timer(timestamp_t *old, timestamp_t *new)
+switch_timer(timestamp_t *oldt, timestamp_t *newt)
 {
-  *new = get_timestamp();
-  return MIN(*new-*old, ~0U);
+  *newt = get_timestamp();
+  return MIN(*newt-*oldt, ~0U);
 }