Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234474
b: refs/heads/master
c: a1ceb74
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Mar 1, 2011
1 parent fe03f77 commit 0acc5b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3166fc8fb6a2f52273d545e970297524e02c3e39
refs/heads/master: a1ceb741cf86ef433006379742db81c00b450bae
7 changes: 5 additions & 2 deletions trunk/tools/perf/util/ui/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "../debug.h"
#include "browser.h"
#include "helpline.h"
#include "ui.h"
#include "util.h"

static void newt_form__set_exit_keys(newtComponent self)
Expand Down Expand Up @@ -118,10 +119,12 @@ void ui__warning(const char *format, ...)
va_list args;

va_start(args, format);
if (use_browser > 0)
if (use_browser > 0) {
pthread_mutex_lock(&ui__lock);
newtWinMessagev((char *)warning_str, (char *)ok,
(char *)format, args);
else
pthread_mutex_unlock(&ui__lock);
} else
vfprintf(stderr, format, args);
va_end(args);
}

0 comments on commit 0acc5b4

Please sign in to comment.