commit: 47ea56cc698f9e29b38695bc3e74fa7b059d64cb
parent ff4ccaadd09034770aecc18bbe4dcd4fa3db7414
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 28 Apr 2021 05:12:25 +0200
manpages: Fix & enhance syntax
Diffstat:
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/checkpassword.8 b/checkpassword.8
@@ -26,7 +26,7 @@ possibly more data (also ignored)
.Pp
.Nm
is for applications that typically shouldn't effectively run as root like screen lockers, for others you might want to directly use
-.Xr 3 chkpw
+.Xr chkpw 3
.Pp
Client applications are highly recommended use a restricted
.Ev PATH
diff --git a/chkpw.3 b/chkpw.3
@@ -4,21 +4,25 @@
.Dd 2021-04-27
.Dt CHKPW 3
.Sh NAME
-.Lb chkpw
+.Nm chkpw
.Nd Uniform password checking interface for applications
.Sh SYNOPSIS
.In chkpw.h
.Vt extern struct chkpw_extra;
.Ft char *
-.Fn chkpw "const char *username, const char *password, struct chkpw_extra"
+.Fo chkpw
+.Fa "const char *username"
+.Fa "const char *password"
+.Fa "struct chkpw_extra"
+.Fc
.Sh DESCRIPTION
.Fn chkpw
will verify
-.Aq password
+.Va password
against
-.Aq username .
+.Va username .
Additionnal options might be passed in the future via
-.Aq chkpw_extra ,
+.Va chkpw_extra ,
for now it is safe to give it
.Aq NULL .
.Pp