diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-01-02 08:31:43 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-01-02 08:31:43 +0100 |
| commit | 771aecbeff61966ab3516b5a106fb5b429e601ba (patch) | |
| tree | 50f9fb62350c3d13ea8ba0c3d9b49423578d7b51 | |
| parent | e878a2de3e85e711f95505c842e64b0b2fbfca00 (diff) | |
| download | man-pages-771aecbeff61966ab3516b5a106fb5b429e601ba.tar.gz | |
Various pages: Consistently use 'unsigned int'
Most pages use 'unsigned int' (and the kernel too).
Make them all do so.
$ find man? -type f \
| xargs sed -i \
-e 's/unsigned \*/unsigned int */g'
-e 's/unsigned "/unsigned int "/g';
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man2/getcpu.2 | 2 | ||||
| -rw-r--r-- | man2/io_setup.2 | 2 | ||||
| -rw-r--r-- | man2/mbind.2 | 2 | ||||
| -rw-r--r-- | man3/cfree.3 | 2 | ||||
| -rw-r--r-- | man3/des_crypt.3 | 8 | ||||
| -rw-r--r-- | man3/getrpcport.3 | 2 | ||||
| -rw-r--r-- | man3/random.3 | 4 | ||||
| -rw-r--r-- | man3/xdr.3 | 2 |
8 files changed, 12 insertions, 12 deletions
diff --git a/man2/getcpu.2 b/man2/getcpu.2 index fc36b43b50..a75123f971 100644 --- a/man2/getcpu.2 +++ b/man2/getcpu.2 @@ -16,7 +16,7 @@ getcpu \- determine CPU and NUMA node on which the calling thread is running .nf .B #include <linux/getcpu.h> .PP -.BI "int getcpu(unsigned *" cpu ", unsigned *" node \ +.BI "int getcpu(unsigned int *" cpu ", unsigned int *" node \ ", struct getcpu_cache *" tcache ); .fi .SH DESCRIPTION diff --git a/man2/io_setup.2 b/man2/io_setup.2 index e08d19bb82..bd52a53110 100644 --- a/man2/io_setup.2 +++ b/man2/io_setup.2 @@ -11,7 +11,7 @@ io_setup \- create an asynchronous I/O context .nf .BR "#include <linux/aio_abi.h>" " /* Defines needed types */" .PP -.BI "long io_setup(unsigned " nr_events ", aio_context_t *" ctx_idp ); +.BI "long io_setup(unsigned int " nr_events ", aio_context_t *" ctx_idp ); .fi .PP .IR Note : diff --git a/man2/mbind.2 b/man2/mbind.2 index bf66dfc6cb..d98969e7fc 100644 --- a/man2/mbind.2 +++ b/man2/mbind.2 @@ -41,7 +41,7 @@ mbind \- set memory policy for a memory range .PP .BI "long mbind(void *" addr ", unsigned long " len ", int " mode , .BI " const unsigned long *" nodemask ", unsigned long " maxnode , -.BI " unsigned " flags ); +.BI " unsigned int " flags ); .PP Link with \fI\-lnuma\fP. .fi diff --git a/man3/cfree.3 b/man3/cfree.3 index 2a09527a7c..74223db710 100644 --- a/man3/cfree.3 +++ b/man3/cfree.3 @@ -36,7 +36,7 @@ cfree \- free allocated memory .BI "void cfree(void *" ptr ); .PP /* In SCO OpenServer */ -.BI "void cfree(char *" ptr ", unsigned " num ", unsigned " size ); +.BI "void cfree(char *" ptr ", unsigned int " num ", unsigned int " size ); .PP /* In Solaris watchmalloc.so.1 */ .BI "void cfree(void *" ptr ", size_t " nelem ", size_t " elsize ); diff --git a/man3/des_crypt.3 b/man3/des_crypt.3 index 7f34c15851..66fe78337b 100644 --- a/man3/des_crypt.3 +++ b/man3/des_crypt.3 @@ -21,11 +21,11 @@ DES encryption .\" .B #include <des_crypt.h> .B #include <rpc/des_crypt.h> .PP -.BI "int ecb_crypt(char *" key ", char *" data ", unsigned " datalen , -.BI " unsigned " mode ); +.BI "int ecb_crypt(char *" key ", char *" data ", unsigned int " datalen , +.BI " unsigned int " mode ); .PP -.BI "int cbc_crypt(char *" key ", char *" data ", unsigned " datalen , -.BI " unsigned " mode ", char *" ivec ); +.BI "int cbc_crypt(char *" key ", char *" data ", unsigned int " datalen , +.BI " unsigned int " mode ", char *" ivec ); .PP .BI "void des_setparity(char *" key ); .PP diff --git a/man3/getrpcport.3 b/man3/getrpcport.3 index 2eba5d30a8..d5753d39bf 100644 --- a/man3/getrpcport.3 +++ b/man3/getrpcport.3 @@ -13,7 +13,7 @@ getrpcport \- get RPC port number .B "#include <rpc/rpc.h>" .PP .BI "int getrpcport(const char *" host ", unsigned long " prognum , -.BI " unsigned long " versnum ", unsigned " proto ); +.BI " unsigned long " versnum ", unsigned int " proto ); .fi .SH DESCRIPTION .BR getrpcport () diff --git a/man3/random.3 b/man3/random.3 index 288d8adf5c..d557ed1f96 100644 --- a/man3/random.3 +++ b/man3/random.3 @@ -38,9 +38,9 @@ random, srandom, initstate, setstate \- random number generator .B #include <stdlib.h> .PP .B long random(void); -.BI "void srandom(unsigned " seed ); +.BI "void srandom(unsigned int " seed ); .PP -.BI "char *initstate(unsigned " seed ", char *" state ", size_t " n ); +.BI "char *initstate(unsigned int " seed ", char *" state ", size_t " n ); .BI "char *setstate(char *" state ); .fi .PP diff --git a/man3/xdr.3 b/man3/xdr.3 index 713827567f..978a50660d 100644 --- a/man3/xdr.3 +++ b/man3/xdr.3 @@ -433,7 +433,7 @@ C characters and their external representations. This routine returns one if it succeeds, zero otherwise. .PP .nf -.BI "bool_t xdr_u_int(XDR *" xdrs ", unsigned *" up ); +.BI "bool_t xdr_u_int(XDR *" xdrs ", unsigned int *" up ); .fi .IP A filter primitive that translates between C |
