summaryrefslogtreecommitdiff
path: root/ntpq/libntpq_subs.c
diff options
context:
space:
mode:
Diffstat (limited to 'ntpq/libntpq_subs.c')
-rw-r--r--ntpq/libntpq_subs.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/ntpq/libntpq_subs.c b/ntpq/libntpq_subs.c
index 09b99bd48290..e53b4193c9e4 100644
--- a/ntpq/libntpq_subs.c
+++ b/ntpq/libntpq_subs.c
@@ -17,21 +17,19 @@
#include "libntpq.h"
-/* the following functions are required internally by a number of libntpq functions
- * and since they are defined as static in ntpq-subs.c, they need to be exported here
- */
-
int ntpq_dogetassoc(void)
{
- if ( dogetassoc(NULL))
- {
+ if (dogetassoc(NULL))
return numassoc;
- } else {
- return 0;
- }
+ else
+ return 0;
}
+/* the following functions are required internally by a number of libntpq functions
+ * and since they are defined as static in ntpq-subs.c, they need to be exported here
+ */
+
char ntpq_decodeaddrtype(sockaddr_u *sock)
{
return decodeaddrtype(sock);