]> granicus.if.org Git - strace/commitdiff
2003-01-10 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 10 Jan 2003 20:05:56 +0000 (20:05 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 10 Jan 2003 20:05:56 +0000 (20:05 +0000)
* strace.c (rebuild_pollv): Fix typo: struct poll -> struct pollfd.

strace.c

index 2ffa3c60a177f52c343af3f0de5c44af87ffce0d..1d5f2ccf27c0a9b187e17d1b051ee6c75e19ee25 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -1346,7 +1346,7 @@ rebuild_pollv()
 
        if (pollv != NULL)
                free (pollv);
-       pollv = (struct poll *) malloc(nprocs * sizeof pollv[0]);
+       pollv = (struct pollfd *) malloc(nprocs * sizeof pollv[0]);
        if (pollv == NULL) {
                fprintf(stderr, "strace: out of memory for poll vector\n");
                exit(1);