]> andersk Git - moira.git/commitdiff
fix FDSET initialization
authormar <mar>
Wed, 13 Sep 1989 14:51:21 +0000 (14:51 +0000)
committermar <mar>
Wed, 13 Sep 1989 14:51:21 +0000 (14:51 +0000)
gdb/gdb.c

index 3eeebf8ce9917efd6624fa4e2f5baa200f7ea988..e38f7e9464bb25ea471e61e92a869da419b30205 100644 (file)
--- a/gdb/gdb.c
+++ b/gdb/gdb.c
@@ -96,11 +96,9 @@ gdb_init()
         */
        gdb_mfd = 0;
 
-       for (i=0; i<NFDBITS/sizeof(int); i++) {
-               gdb_crfds.fds_bits[i] = 0;
-               gdb_cwfds.fds_bits[i] = 0;
-               gdb_cefds.fds_bits[i] = 0;
-       }
+       FD_ZERO(&gdb_crfds);
+       FD_ZERO(&gdb_cwfds);
+       FD_ZERO(&gdb_cefds);
 
        /*
         * Initialize the server/client layer
This page took 0.043424 seconds and 5 git commands to generate.