projects
/
icmpmonitor
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3900fd4
)
Minor rewriting of gcd().
author
Aaron Taylor
<ataylor@subgeniuskitty.com>
Mon, 23 Sep 2019 06:41:42 +0000
(23:41 -0700)
committer
Aaron Taylor
<ataylor@subgeniuskitty.com>
Mon, 23 Sep 2019 06:41:42 +0000
(23:41 -0700)
icmpmonitor.c
patch
|
blob
|
blame
|
history
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);
}