]> code.delx.au - pulseaudio/blobdiff - src/polypcore/core-util.c
* split pa_cstrerror() into its own file polypcore/core-error.[ch]
[pulseaudio] / src / polypcore / core-util.c
index 0e7f77a4e08861451c743c2ac9c8d4aab1f013c8..6cf281c5f284add86b8ec49569aac724c0d598a9 100644 (file)
 
 #include <samplerate.h>
 
-#include <polyp/error.h>
 #include <polyp/xmalloc.h>
 #include <polyp/util.h>
 
+#include <polypcore/core-error.h>
 #include <polypcore/winsock.h>
 #include <polypcore/log.h>
 
@@ -564,7 +564,7 @@ static int is_group(gid_t gid, const char *name) {
     data = pa_xmalloc(n);
 
     if (getgrgid_r(gid, &group, data, n, &result) < 0 || !result) {
-        pa_log(__FILE__": getgrgid_r(%u): %s", gid, pa_cstrerror(errno));
+        pa_log(__FILE__": getgrgid_r(%u): %s", (unsigned)gid, pa_cstrerror(errno));
         goto finish;
     }