summaryrefslogtreecommitdiff
path: root/xinit.c
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2010-04-14 03:03:18 +0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-04-13 20:17:24 -0700
commita63c31f74e1c11509b561ab9687138f5c960df0f (patch)
tree7d1e67cf8821dd0bf2f8e5084e25ac6d288c5fbc /xinit.c
parent5dea0c1caaeb0d7f1280fd28c80c3c1bc10c34d0 (diff)
Stop converting functions' return types to void
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xinit.c')
-rw-r--r--xinit.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/xinit.c b/xinit.c
index 73b2b39..deb7aa4 100644
--- a/xinit.c
+++ b/xinit.c
@@ -252,11 +252,11 @@ main(int argc, char *argv[])
xinitrcbuf[0] = '\0';
if ((cp = getenv("XINITRC")) != NULL) {
- (void) snprintf(xinitrcbuf, sizeof(xinitrcbuf), "%s", cp);
+ snprintf(xinitrcbuf, sizeof(xinitrcbuf), "%s", cp);
required = True;
} else if ((cp = getenv("HOME")) != NULL) {
- (void) snprintf(xinitrcbuf, sizeof(xinitrcbuf),
- "%s/%s", cp, XINITRC);
+ snprintf(xinitrcbuf, sizeof(xinitrcbuf),
+ "%s/%s", cp, XINITRC);
}
if (xinitrcbuf[0]) {
if (access(xinitrcbuf, F_OK) == 0) {
@@ -280,11 +280,11 @@ main(int argc, char *argv[])
xserverrcbuf[0] = '\0';
if ((cp = getenv("XSERVERRC")) != NULL) {
- (void) snprintf(xserverrcbuf, sizeof(xserverrcbuf), "%s", cp);
+ snprintf(xserverrcbuf, sizeof(xserverrcbuf), "%s", cp);
required = True;
} else if ((cp = getenv("HOME")) != NULL) {
- (void) snprintf(xserverrcbuf, sizeof(xserverrcbuf),
- "%s/%s", cp, XSERVERRC);
+ snprintf(xserverrcbuf, sizeof(xserverrcbuf),
+ "%s/%s", cp, XSERVERRC);
}
if (xserverrcbuf[0]) {
if (access(xserverrcbuf, F_OK) == 0) {
@@ -456,17 +456,17 @@ startServer(char *server[])
* don't hang on read/write to control tty
*/
#ifdef SIGTTIN
- (void) signal(SIGTTIN, SIG_IGN);
+ signal(SIGTTIN, SIG_IGN);
#endif
#ifdef SIGTTOU
- (void) signal(SIGTTOU, SIG_IGN);
+ signal(SIGTTOU, SIG_IGN);
#endif
/*
* ignore SIGUSR1 in child. The server
* will notice this and send SIGUSR1 back
* at xinit when ready to accept connections
*/
- (void) signal(SIGUSR1, SIG_IGN);
+ signal(SIGUSR1, SIG_IGN);
/*
* prevent server from getting sighup from vhangup()
* if client is xterm -L