Mercurial > libdvdnav.hg
diff remap.c @ 388:90ca650854e0 src
Remove all trailing whitespace,
patch by Erik Hovland *erik$hovland dot org%
author | rathann |
---|---|
date | Sat, 06 Sep 2008 21:55:51 +0000 |
parents | 579a3538d284 |
children | d3c273ced49c |
line wrap: on
line diff
--- a/remap.c Sun Aug 31 18:13:23 2008 +0000 +++ b/remap.c Sat Sep 06 21:55:51 2008 +0000 @@ -26,7 +26,7 @@ #include <string.h> #include <stdio.h> -#ifndef _MSC_VER +#ifndef _MSC_VER #include <sys/param.h> #include <sys/fcntl.h> #else @@ -98,7 +98,7 @@ } else if (a->start_block > b->end_block) { /* * if a->start_block == b->end_block then the two regions - * aren't strictly overlapping, but they should be merged + * aren't strictly overlapping, but they should be merged * anyway since there are zero blocks between them */ return 1; @@ -154,7 +154,7 @@ } } -static int parseblock(char *buf, int *dom, int *tt, int *pg, +static int parseblock(char *buf, int *dom, int *tt, int *pg, unsigned long *start, unsigned long *end) { long tmp; char *tok; @@ -184,7 +184,7 @@ case 4: *end = tmp; break; - } + } st++; tok = strtok( NULL, " "); } @@ -223,7 +223,7 @@ if (strncasecmp( buf, "debug", 5) == 0) { map->debug = 1; } else { - res = parseblock( buf, + res = parseblock( buf, &tmp.domain, &tmp.title, &tmp.program, &tmp.start_block, &tmp.end_block); if (res != 5) { fprintf(MSG_OUT, "libdvdnav: Ignoring map line (%d): %s\n", res, buf); @@ -241,9 +241,9 @@ return map; } -unsigned long remap_block( - remap_t *map, int domain, int title, int program, - unsigned long cblock, unsigned long offset) +unsigned long remap_block( + remap_t *map, int domain, int title, int program, + unsigned long cblock, unsigned long offset) { block_t key; block_t *b; @@ -258,7 +258,7 @@ key.program = program; key.start_block = key.end_block = cblock + offset; b = findblock( map, &key); - + if (b) { if (map->debug) { fprintf(MSG_OUT, "libdvdnav: Redirected to %lx\n", b->end_block);