Fixed errors in client that came in from switching to C99
This commit is contained in:
parent
32fd8e5bc2
commit
36834b58b7
3 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
// learn C.
|
// learn C.
|
||||||
|
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
#include "message.h"
|
||||||
|
#include <unistd.h>
|
||||||
#include <netdb.h> // Contains host structure
|
#include <netdb.h> // Contains host structure
|
||||||
#include <netinet/in.h> //sockaddr_in
|
#include <netinet/in.h> //sockaddr_in
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
@ -56,7 +58,7 @@ int main(int argc, char *argv[]) {
|
||||||
if (errflag < 0)
|
if (errflag < 0)
|
||||||
err__crash("Failed to connect to host");
|
err__crash("Failed to connect to host");
|
||||||
|
|
||||||
msg__login_req(sockfd, "username", "passwd");
|
msg__login_req(&sockfd, "username", "passwd");
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
bzero(msgbuffer, sizeof msgbuffer);
|
bzero(msgbuffer, sizeof msgbuffer);
|
||||||
|
|
|
||||||
0
src/server/command.c
Normal file
0
src/server/command.c
Normal file
0
src/server/command.h
Normal file
0
src/server/command.h
Normal file
Loading…
Reference in a new issue