diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-04-14 03:03:18 +0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-04-13 20:17:24 -0700 |
commit | a63c31f74e1c11509b561ab9687138f5c960df0f (patch) | |
tree | 7d1e67cf8821dd0bf2f8e5084e25ac6d288c5fbc | |
parent | 5dea0c1caaeb0d7f1280fd28c80c3c1bc10c34d0 (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>
-rw-r--r-- | xinit.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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 |