[Git][NTPsec/ntpsec][master] Boolification.

Eric S. Raymond gitlab at mg.gitlab.com
Thu Nov 9 14:09:44 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
72faa2b8 by Eric S. Raymond at 2017-11-09T09:09:25-05:00
Boolification.

- - - - -


2 changed files:

- include/ntp_stdlib.h
- libntp/authkeys.c


Changes:

=====================================
include/ntp_stdlib.h
=====================================
--- a/include/ntp_stdlib.h
+++ b/include/ntp_stdlib.h
@@ -42,8 +42,8 @@ extern	void	setup_logfile	(const char *);
 extern	void	auth_delkeys	(void);
 extern	int	authdecrypt	(keyid_t, uint32_t *, int, int);
 extern	int	authencrypt	(keyid_t, uint32_t *, int);
-extern	int	authhavekey	(keyid_t);
-extern	int	authistrusted	(keyid_t);
+extern	bool	authhavekey	(keyid_t);
+extern	bool	authistrusted	(keyid_t);
 extern	bool	authreadkeys	(const char *);
 extern	void	authtrust	(keyid_t, bool);
 extern	bool	authusekey	(keyid_t, int, const uint8_t *);


=====================================
libntp/authkeys.c
=====================================
--- a/libntp/authkeys.c
+++ b/libntp/authkeys.c
@@ -311,7 +311,7 @@ freesymkey(
  * authhavekey - return true and cache the key, if zero or both known
  *		 and trusted.
  */
-int
+bool
 authhavekey(
 	keyid_t		id
 	)
@@ -420,7 +420,7 @@ authtrust(
 /*
  * authistrusted - determine whether a key is trusted
  */
-int
+bool
 authistrusted(
 	keyid_t		keyno
 	)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/72faa2b888906ab52fdd291ff882698ebdfff859

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/72faa2b888906ab52fdd291ff882698ebdfff859
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171109/a8ad1026/attachment.html>


More information about the vc mailing list