Share

RTelnet

Tracker: Bugs

5 compilation on linux - ID: 1593276
Last Update: Tracker Item Submitted ( devloop )

Got the following warnings when I type "make" on Linux
:

cc rtelnet.c -o rtelnet
rtelnet.c: In function 'main':
rtelnet.c:81: warning: incompatible implicit
declaration of built-in function 'exit'
rtelnet.c:138: warning: incompatible implicit
declaration of built-in function 'exit'
cc rtelnetd.c -o rtelnetd
rtelnetd.c: In function 'main':
rtelnetd.c:66: warning: incompatible implicit
declaration of built-in function 'exit'
rtelnetd.c:74: warning: incompatible implicit
declaration of built-in function 'exit'
rtelnetd.c:83: warning: incompatible implicit
declaration of built-in function 'exit'

It's because stdlib.h is not included... don't know if
you got it under BSD

And if I launch rtelnetd got a segmentation fault.
error is here :
sin.sin_port = htons(atoi(REMOTE_PORT));
REMOTE_PORT is already an int so change it to :
sin.sin_port = htons(REMOTE_PORT);

and it works :)


devloop ( devloop ) - 2006-11-09 10:20

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.