summaryrefslogtreecommitdiff
path: root/man2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2012-08-03 08:10:17 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2012-08-03 10:33:49 +0200
commit13f78d96adf52101aa480e8c83d041f62fcfa1c8 (patch)
tree3cf26170a94292af9c971636ea37efb651be4c1a /man2
parentca302d0ee368b699ffec4cd465ee02f3ed9fe1a1 (diff)
getdents.2, select_tut.2, atof.3, atoi.3, pthread_create.3, pthread_sigmask.3, rtime.3, setbuf.3, tsearch.3, netlink.7: Remove unneeded casts
Reported-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
-rw-r--r--man2/getdents.24
-rw-r--r--man2/select_tut.24
2 files changed, 4 insertions, 4 deletions
diff --git a/man2/getdents.2 b/man2/getdents.2
index 60d9a11e..0d61bc6b 100644
--- a/man2/getdents.2
+++ b/man2/getdents.2
@@ -24,7 +24,7 @@
.\" Modified 22 July 1995 by Michael Chastain <mec@duracef.shout.net>:
.\" Derived from 'readdir.2'.
.\" Modified Tue Oct 22 08:11:14 EDT 1996 by Eric S. Raymond <esr@thyrsus.com>
-.TH GETDENTS 2 2012-07-13 "Linux" "Linux Programmer's Manual"
+.TH GETDENTS 2 2012-08-03 "Linux" "Linux Programmer's Manual"
.SH NAME
getdents \- get directory entries
.SH SYNOPSIS
@@ -268,7 +268,7 @@ main(int argc, char *argv[])
(d_type == DT_BLK) ? "block dev" :
(d_type == DT_CHR) ? "char dev" : "???");
printf("%4d %10lld %s\\n", d\->d_reclen,
- (long long) d\->d_off, (char *) d->d_name);
+ (long long) d\->d_off, d->d_name);
bpos += d\->d_reclen;
}
}
diff --git a/man2/select_tut.2 b/man2/select_tut.2
index 17c74ac9..d9fb610c 100644
--- a/man2/select_tut.2
+++ b/man2/select_tut.2
@@ -27,7 +27,7 @@
.\" various other changes
.\" 2008-01-26, mtk, substantial changes and rewrites
.\"
-.TH SELECT_TUT 2 2010-06-10 "Linux" "Linux Programmer's Manual"
+.TH SELECT_TUT 2 2012-08-03 "Linux" "Linux Programmer's Manual"
.SH NAME
select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \-
synchronous I/O multiplexing
@@ -561,7 +561,7 @@ listen_socket(int listen_port)
}
yes = 1;
if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
- (char *) &yes, sizeof(yes)) == \-1) {
+ &yes, sizeof(yes)) == \-1) {
perror("setsockopt");
close(s);
return \-1;