Fixed errors in client that came in from switching to C99

This commit is contained in:
Warwick 2023-08-09 16:05:49 +01:00
parent 32fd8e5bc2
commit 36834b58b7
3 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,8 @@
// learn C.
#include "error.h"
#include "message.h"
#include <unistd.h>
#include <netdb.h> // Contains host structure
#include <netinet/in.h> //sockaddr_in
#include <stdio.h>
@ -56,7 +58,7 @@ int main(int argc, char *argv[]) {
if (errflag < 0)
err__crash("Failed to connect to host");
msg__login_req(sockfd, "username", "passwd");
msg__login_req(&sockfd, "username", "passwd");
while (1) {
bzero(msgbuffer, sizeof msgbuffer);

0
src/server/command.c Normal file
View file

0
src/server/command.h Normal file
View file