]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/partmap.c
tableprinter: update of documentation
[libucw.git] / ucw / partmap.c
index a823d3d157fa29d1355db9c68ad5bd040b83f5c6..9108353a0e972c04607e033f2395cd20b50ab95b 100644 (file)
@@ -8,9 +8,9 @@
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
-#include "ucw/lfs.h"
-#include "ucw/partmap.h"
+#include <ucw/lib.h>
+#include <ucw/io.h>
+#include <ucw/partmap.h>
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -62,7 +62,7 @@ partmap_close(struct partmap *p)
 }
 
 void
-partmap_load(struct partmap *p, ucw_off_t start, uns size)
+partmap_load(struct partmap *p, ucw_off_t start, uint size)
 {
   if (p->start_map)
     munmap(p->start_map, p->end_off - p->start_off);
@@ -90,8 +90,8 @@ partmap_load(struct partmap *p, ucw_off_t start, uns size)
 int main(int argc, char **argv)
 {
   struct partmap *p = partmap_open(argv[1], 0);
-  uns l = partmap_size(p);
-  uns i;
+  uint l = partmap_size(p);
+  uint i;
   for (i=0; i<l; i++)
     putchar(*(char *)partmap_map(p, i, 1));
   partmap_close(p);