cleanup: put DEFAULT_REMOTE_IP and DEFAULT_REMOTE_PORT in utils.h
This commit is contained in:
@@ -33,9 +33,6 @@ typedef struct {
|
||||
pthread_mutex_t lock;
|
||||
} enb_data;
|
||||
|
||||
#define DEFAULT_REMOTE_IP "127.0.0.1"
|
||||
#define DEFAULT_REMOTE_PORT 2021
|
||||
|
||||
void is_on_changed(void *_d)
|
||||
{
|
||||
enb_data *d = _d;
|
||||
|
||||
@@ -14,9 +14,6 @@
|
||||
#include "event_selector.h"
|
||||
#include "config.h"
|
||||
|
||||
#define DEFAULT_REMOTE_IP "127.0.0.1"
|
||||
#define DEFAULT_REMOTE_PORT 2021
|
||||
|
||||
typedef struct {
|
||||
int socket;
|
||||
int *is_on;
|
||||
|
||||
@@ -20,6 +20,9 @@ list *list_append(list *l, void *data);
|
||||
/* socket */
|
||||
/****************************************************************************/
|
||||
|
||||
#define DEFAULT_REMOTE_IP "127.0.0.1"
|
||||
#define DEFAULT_REMOTE_PORT 2021
|
||||
|
||||
/* socket_send: return 0 if okay, -1 on error */
|
||||
int socket_send(int socket, void *buffer, int size);
|
||||
int get_connection(char *addr, int port);
|
||||
|
||||
@@ -40,9 +40,6 @@ no_connection:
|
||||
if (pthread_mutex_unlock(&d->lock)) abort();
|
||||
}
|
||||
|
||||
#define DEFAULT_REMOTE_IP "127.0.0.1"
|
||||
#define DEFAULT_REMOTE_PORT 2021
|
||||
|
||||
void usage(void)
|
||||
{
|
||||
printf(
|
||||
|
||||
Reference in New Issue
Block a user