Removed stbbr_main

This commit is contained in:
James Booth
2015-05-17 15:55:42 +01:00
parent 27f44c01ff
commit 5eb65540cf
4 changed files with 5 additions and 9 deletions

View File

@@ -17,4 +17,4 @@ include_HEADERS = stabber.h
noinst_PROGRAMS = runstabber
runstabber_SOURCES = runstabber.c
runstabber_CFLAGS = -I$(top_srcdir)
runstabber_LDADD = libstabber.la
runstabber_LDADD = libstabber.la -lpthread

View File

@@ -1,7 +1,7 @@
#include <glib.h>
#include <stdlib.h>
#include <stabber.h>
#include <pthread.h>
int
main(int argc , char *argv[])
@@ -37,5 +37,7 @@ main(int argc , char *argv[])
port = atoi(argv[1]);
}
return stbbr_main(port);
stbbr_start(port);
pthread_exit(0);
}

View File

@@ -9,11 +9,6 @@ typedef struct server_args_t {
int port;
} StabberArgs;
int
stbbr_main(int port)
{
return server_run(port);
}
int
stbbr_start(int port)

View File

@@ -1,7 +1,6 @@
#ifndef __H_STABBER
#define __H_STABBER
int stbbr_main(int port);
int stbbr_start(int port);
int stbbr_auth_passwd(char *password);