diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-13 12:12:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-13 12:12:35 +0000 |
commit | 425660b2e0b2bbe1ccb6b54553207573a9aae2b9 (patch) | |
tree | 1d59edd76b05aa6a878a7f312776661b04e94f8e /src/examples | |
parent | ec72716265b31bb157d4638c9d6dca1b2bc88b3a (diff) | |
download | libmicrohttpd-425660b2e0b2bbe1ccb6b54553207573a9aae2b9.tar.gz libmicrohttpd-425660b2e0b2bbe1ccb6b54553207573a9aae2b9.zip |
check return code
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/fileserver_example_external_select.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/examples/fileserver_example_external_select.c b/src/examples/fileserver_example_external_select.c index b863fcbf..d6b8fa23 100644 --- a/src/examples/fileserver_example_external_select.c +++ b/src/examples/fileserver_example_external_select.c | |||
@@ -117,7 +117,8 @@ main (int argc, char *const *argv) | |||
117 | FD_ZERO (&rs); | 117 | FD_ZERO (&rs); |
118 | FD_ZERO (&ws); | 118 | FD_ZERO (&ws); |
119 | FD_ZERO (&es); | 119 | FD_ZERO (&es); |
120 | MHD_get_fdset (d, &rs, &ws, &es, &max); | 120 | if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &max)) |
121 | break; /* fatal internal error */ | ||
121 | if (MHD_get_timeout (d, &mhd_timeout) == MHD_YES) | 122 | if (MHD_get_timeout (d, &mhd_timeout) == MHD_YES) |
122 | 123 | ||
123 | { | 124 | { |