]> mj.ucw.cz Git - libucw.git/blobdiff - lib/sync.c
bgetl() should return uns instead of u32
[libucw.git] / lib / sync.c
index 5faada81c7531a68333905c63e32f350b14af576..6341415a3c94660799725836c4a3a71ea2dbf658 100644 (file)
@@ -10,7 +10,7 @@
 #include <unistd.h>
 
 void
-sync_dir(const byte *name)
+sync_dir(const char *name)
 {
   int fd = open(name, O_RDONLY
 #ifdef CONFIG_LINUX
@@ -24,5 +24,5 @@ sync_dir(const byte *name)
   if (err >= 0)
     return;
  err:
-  log(L_ERROR, "Unable to sync directory %s: %m", name);
+  msg(L_ERROR, "Unable to sync directory %s: %m", name);
 }