.gitignore tags file,

This commit is contained in:
Nils O. Selåsdal
2013-06-13 17:27:20 +02:00
parent 496818b7b5
commit f79f41fb62
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -256,18 +256,20 @@ int main(int argc, char *argv[])
uint16_t local_port = 23456;
uint16_t remote_port = 23456;
int c;
struct uc_log_destination *dest;
srand(getpid());
uc_log_init(&log_modules);
uc_log_add_destination(uc_log_new_stderr(UC_LL_DEBUG, 1));
dest = uc_log_new_stderr(UC_LL_DEBUG, 1);
uc_log_add_destination(dest);
mux = iomux_create(IOMUX_TYPE_DEFAULT);
ctx.mux = mux;
init_hb_context(&ctx, local_port);
while ((c = getopt(argc, argv, "p:P:a:")) != -1) {
while ((c = getopt(argc, argv, "m:p:P:a:")) != -1) {
switch (c) {
case 'p':
local_port = atoi(optarg);
@@ -278,6 +280,9 @@ int main(int argc, char *argv[])
case 'a':
peer_add(&ctx, optarg, remote_port);
break;
case 'm':
uc_log_destination_set_mask(dest, optarg);
break;
default:
printf("Unknown option -%c\n", c);
return 1;