]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: non-ANSI definition [smatch scan]
authorKarel Zak <kzak@redhat.com>
Mon, 12 Sep 2011 14:18:16 +0000 (16:18 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Sep 2011 14:18:16 +0000 (16:18 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c

index f708e9181379f01622dadf31cd153d96103f82ae..3891bf952677a6513a800683a61f36f2486c0066 100644 (file)
@@ -288,7 +288,7 @@ main(int argc, char **argv) {
 }
 
 void
-doinput() {
+doinput(void) {
        ssize_t cc;
        char ibuf[BUFSIZ];
 
@@ -408,7 +408,7 @@ dooutput(FILE *timingfd) {
 }
 
 void
-doshell() {
+doshell(void) {
        char *shname;
 
 #if 0
@@ -447,7 +447,7 @@ doshell() {
 }
 
 void
-fixtty() {
+fixtty(void) {
        struct termios rtt;
 
        rtt = tt;
@@ -457,14 +457,14 @@ fixtty() {
 }
 
 void
-fail() {
+fail(void) {
 
        kill(0, SIGTERM);
        done();
 }
 
 void
-done() {
+done(void) {
        time_t tvec;
 
        if (subchild) {
@@ -498,7 +498,7 @@ done() {
 }
 
 void
-getmaster() {
+getmaster(void) {
 #if HAVE_LIBUTIL && HAVE_PTY_H
        tcgetattr(STDIN_FILENO, &tt);
        ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&win);
@@ -545,7 +545,7 @@ getmaster() {
 }
 
 void
-getslave() {
+getslave(void) {
 #ifndef HAVE_LIBUTIL
        line[strlen("/dev/")] = 't';
        slave = open(line, O_RDWR);