From 09589ca82ea8ceaa26a6c2f4792742019a162827 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Wed, 19 Mar 1997 00:52:58 +0000 Subject: [PATCH] FIxed arg types (mostly missing consts) in synopsis. --- lib/libc/gen/getcap.3 | 2 +- lib/libc/gen/getnetgrent.3 | 4 ++-- lib/libc/gen/tcsetattr.3 | 6 +++--- lib/libc/locale/multibyte.3 | 2 +- lib/libc/stdio/printf.3 | 2 +- lib/libmd/mdX.3 | 6 +++--- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/libc/gen/getcap.3 b/lib/libc/gen/getcap.3 index 548bd552eb47..3aef9afe1f24 100644 --- a/lib/libc/gen/getcap.3 +++ b/lib/libc/gen/getcap.3 @@ -58,7 +58,7 @@ .Ft int .Fn cgetmatch "char *buf" "char *name" .Ft char * -.Fn cgetcap "char *buf" "char *cap" "char type" +.Fn cgetcap "char *buf" "char *cap" "int type" .Ft int .Fn cgetnum "char *buf" "char *cap" "long *num" .Ft int diff --git a/lib/libc/gen/getnetgrent.3 b/lib/libc/gen/getnetgrent.3 index 07d58063a4ac..38da3c008a50 100644 --- a/lib/libc/gen/getnetgrent.3 +++ b/lib/libc/gen/getnetgrent.3 @@ -42,9 +42,9 @@ .Nd netgroup database operations .Sh SYNOPSIS .Ft int -.Fn getnetgrent "char **host, char **user, char **domain" +.Fn getnetgrent "char **host" "char **user" "char **domain" .Ft int -.Fn innetgr "const char *netgroup, const char *host, const char *user, const char *domain" +.Fn innetgr "const char *netgroup" "const char *host" "const char *user" "const char *domain" .Ft void .Fn setnetgrent "const char *netgroup" .Ft void diff --git a/lib/libc/gen/tcsetattr.3 b/lib/libc/gen/tcsetattr.3 index 1eb6ae817433..ffd4177d9920 100644 --- a/lib/libc/gen/tcsetattr.3 +++ b/lib/libc/gen/tcsetattr.3 @@ -47,11 +47,11 @@ .Sh SYNOPSIS .Fd #include .Ft speed_t -.Fn cfgetispeed "struct termios *t" +.Fn cfgetispeed "const struct termios *t" .Ft int .Fn cfsetispeed "struct termios *t" "speed_t speed" .Ft speed_t -.Fn cfgetospeed "struct termios *t" +.Fn cfgetospeed "const struct termios *t" .Ft int .Fn cfsetospeed "struct termios *t" "speed_t speed" .Ft int @@ -61,7 +61,7 @@ .Ft int .Fn tcgetattr "int fd" "struct termios *t" .Ft int -.Fn tcsetattr "int fd" "int action" "struct termios *t" +.Fn tcsetattr "int fd" "int action" "const struct termios *t" .Sh DESCRIPTION The .Fn cfmakeraw , diff --git a/lib/libc/locale/multibyte.3 b/lib/libc/locale/multibyte.3 index 7546cb21e7ad..b3df481b9371 100644 --- a/lib/libc/locale/multibyte.3 +++ b/lib/libc/locale/multibyte.3 @@ -47,7 +47,7 @@ .Sh SYNOPSIS .Fd #include .Ft int -.Fn mblen "const char *mbchar" "int nbytes" +.Fn mblen "const char *mbchar" "size_t nbytes" .Ft size_t .Fn mbstowcs "wchar_t *wcstring" "const char *mbstring" "size_t nwchars" .Ft int diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index 2ff5238f9a9f..6d5ad8a298a5 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -68,7 +68,7 @@ .Ft int .Fn vfprintf "FILE *stream" "const char *format" "va_list ap" .Ft int -.Fn vsprintf "char *str" "char *format" "va_list ap" +.Fn vsprintf "char *str" "const char *format" "va_list ap" .Ft int .Fn vsnprintf "char *str" "size_t size" "const char *format" "va_list ap" .Ft int diff --git a/lib/libmd/mdX.3 b/lib/libmd/mdX.3 index ab26fb3e9799..d9539f6a4718 100644 --- a/lib/libmd/mdX.3 +++ b/lib/libmd/mdX.3 @@ -6,7 +6,7 @@ .\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp .\" ---------------------------------------------------------------------------- .\" -.\" $Id$ +.\" $Id: mdX.3,v 1.9 1997/02/22 15:07:22 peter Exp $ .\" .Dd October 9, 1996 .Dt MDX 3 @@ -25,7 +25,7 @@ .Ft void .Fn MDXInit "MDX_CTX *context" .Ft void -.Fn MDXUpdate "MDX_CTX *context" "unsigned char *data" "unsigned int len" +.Fn MDXUpdate "MDX_CTX *context" "const unsigned char *data" "unsigned int len" .Ft void .Fn MDXFinal "unsigned char digest[16]" "MDX_CTX *context" .Ft "char *" @@ -33,7 +33,7 @@ .Ft "char *" .Fn MDXFile "char *filename" "char *buf" .Ft "char *" -.Fn MDXData "unsigned char *data" "unsigned int len" "char *buf" +.Fn MDXData "const unsigned char *data" "unsigned int len" "char *buf" .Sh DESCRIPTION The MDX functions calculate a 128-bit cryptographic checksum (digest) for any number of input bytes. A cryptographic checksum is a one-way