projects
/
icmpmonitor
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Minor rewriting of gcd().
[icmpmonitor]
/
icmpmonitor.c
diff --git
a/icmpmonitor.c
b/icmpmonitor.c
index
f2bf43e
..
6eb450f
100644
(file)
--- a/
icmpmonitor.c
+++ b/
icmpmonitor.c
@@
-347,10
+347,10
@@
get_host_addr(const char * name)
return(res);
}
-s
tatic in
t
-gcd(
int x, in
t y)
+s
ize_
t
+gcd(
const size_t x, const size_
t y)
{
-
in
t remainder = x % y;
+
size_
t remainder = x % y;
if (remainder == 0) return y;
return gcd(y, remainder);
}