diff options
author | Carlo von lynX <lynX@time.to.get.psyced.org> | 2016-08-08 21:11:50 +0000 |
---|---|---|
committer | Carlo von lynX <lynX@time.to.get.psyced.org> | 2016-08-08 21:11:50 +0000 |
commit | 1b35e0171eca03d1f6cdff50084b8a8700cf706d (patch) | |
tree | e8ae15f88120407bf0caadc313097a8514d59b36 | |
parent | 06f44db8a9a4c1b6b4a2a4a707067feb7164e609 (diff) | |
download | gnunet-1b35e0171eca03d1f6cdff50084b8a8700cf706d.tar.gz gnunet-1b35e0171eca03d1f6cdff50084b8a8700cf706d.zip |
UX: message type for important things that aren't evil
-rw-r--r-- | src/cadet/gnunet-cadet.c | 3 | ||||
-rw-r--r-- | src/util/common_logging.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/cadet/gnunet-cadet.c b/src/cadet/gnunet-cadet.c index 88ee41096..53c0f2e47 100644 --- a/src/cadet/gnunet-cadet.c +++ b/src/cadet/gnunet-cadet.c | |||
@@ -419,9 +419,10 @@ channel_incoming (void *cls, | |||
419 | } | 419 | } |
420 | if (NULL != lp) { | 420 | if (NULL != lp) { |
421 | /* Now that we have our circuit up and running, let's not | 421 | /* Now that we have our circuit up and running, let's not |
422 | * get confused by further incoming circuits. | 422 | * get confused by further incoming connect requests. |
423 | */ | 423 | */ |
424 | GNUNET_CADET_close_port (lp); | 424 | GNUNET_CADET_close_port (lp); |
425 | lp = NULL; | ||
425 | } | 426 | } |
426 | ch = channel; | 427 | ch = channel; |
427 | if (GNUNET_NO == echo) | 428 | if (GNUNET_NO == echo) |
diff --git a/src/util/common_logging.c b/src/util/common_logging.c index a80081011..ecbe69443 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c | |||
@@ -256,9 +256,9 @@ get_type (const char *log) | |||
256 | if (0 == strcasecmp (log, _("DEBUG"))) | 256 | if (0 == strcasecmp (log, _("DEBUG"))) |
257 | return GNUNET_ERROR_TYPE_DEBUG; | 257 | return GNUNET_ERROR_TYPE_DEBUG; |
258 | if (0 == strcasecmp (log, _("INFO"))) | 258 | if (0 == strcasecmp (log, _("INFO"))) |
259 | return GNUNET_ERROR_TYPE_MESSAGE; | ||
260 | if (0 == strcasecmp (log, _("MESSAGE"))) | ||
261 | return GNUNET_ERROR_TYPE_INFO; | 259 | return GNUNET_ERROR_TYPE_INFO; |
260 | if (0 == strcasecmp (log, _("MESSAGE"))) | ||
261 | return GNUNET_ERROR_TYPE_MESSAGE; | ||
262 | if (0 == strcasecmp (log, _("WARNING"))) | 262 | if (0 == strcasecmp (log, _("WARNING"))) |
263 | return GNUNET_ERROR_TYPE_WARNING; | 263 | return GNUNET_ERROR_TYPE_WARNING; |
264 | if (0 == strcasecmp (log, _("ERROR"))) | 264 | if (0 == strcasecmp (log, _("ERROR"))) |