diff options
-rw-r--r-- | inc/comm_layer_inner.h | 9 | ||||
-rw-r--r-- | lib/utils/abrt_curl.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/inc/comm_layer_inner.h b/inc/comm_layer_inner.h index 82611842..8273d61f 100644 --- a/inc/comm_layer_inner.h +++ b/inc/comm_layer_inner.h @@ -27,6 +27,11 @@ void init_daemon_logging(CObserver *pObs); #endif + +#ifdef __cplusplus +extern "C" { +#endif + /* * Set client's name (dbus ID). NULL unsets it. */ @@ -46,4 +51,8 @@ void set_client_name(const char* name); */ void update_client(const char *fmt, ...); +#ifdef __cplusplus +} +#endif + #endif diff --git a/lib/utils/abrt_curl.c b/lib/utils/abrt_curl.c index 80faa19c..02506218 100644 --- a/lib/utils/abrt_curl.c +++ b/lib/utils/abrt_curl.c @@ -168,7 +168,7 @@ static size_t fread_with_reporting(void *ptr, size_t size, size_t nmemb, void *u fseeko(fp, 0, SEEK_END); off_t sz = ftello(fp); fseeko(fp, cur_pos, SEEK_SET); - error_msg(_("Uploaded: %llu of %llu kbytes"), + update_client(_("Uploaded: %llu of %llu kbytes"), (unsigned long long)cur_pos / 1024, (unsigned long long)sz / 1024); } |