git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libc - AcessNative hacks to separate acess and native namespaces
[tpg/acess2.git]
/
Usermode
/
Applications
/
telnetd_src
/
main.c
diff --git
a/Usermode/Applications/telnetd_src/main.c
b/Usermode/Applications/telnetd_src/main.c
index
a4f5e0d
..
16dac83
100644
(file)
--- a/
Usermode/Applications/telnetd_src/main.c
+++ b/
Usermode/Applications/telnetd_src/main.c
@@
-8,6
+8,7
@@
#include <stddef.h>
#include <net.h>
#include <stdio.h>
#include <stddef.h>
#include <net.h>
#include <stdio.h>
+#include <stdlib.h>
#include <acess/sys.h>
// === TYPES ===
#include <acess/sys.h>
// === TYPES ===
@@
-55,17
+56,17
@@
int main(int argc, char *argv[])
return 0;
}
return 0;
}
+static void FD_SET_MAX(fd_set *set, int fd, int *maxfd)
+{
+ FD_SET(fd, set);
+ if(*maxfd < fd) *maxfd = fd;
+}
+
void EventLoop(void)
{
fd_set fds;
int maxfd;
void EventLoop(void)
{
fd_set fds;
int maxfd;
- void FD_SET_MAX(fd_set *set, int fd, int *maxfd)
- {
- FD_SET(fd, set);
- if(*maxfd < fd) *maxfd = fd;
- }
-
for( ;; )
{
FD_ZERO(&fds);
for( ;; )
{
FD_ZERO(&fds);
UCC
git Repository :: git.ucc.asn.au