
Transactions ID are always unsigned; however get_jtfile() takes them as
signed. Fix it.

---

 cur-root/common.c |    4 ++--
 cur-root/common.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -puN common.c~tid_is_unsigned common.c
--- cur/common.c~tid_is_unsigned	2004-10-04 12:24:37.891332208 -0300
+++ cur-root/common.c	2004-10-04 12:24:54.867751400 -0300
@@ -126,7 +126,7 @@ int get_jdir(const char *filename, char 
 }
 
 /* build the filename of a given transaction */
-int get_jtfile(const char *filename, int tid, char *jtfile)
+int get_jtfile(const char *filename, unsigned int tid, char *jtfile)
 {
 	char *base, *baset;
 	char *dir, *dirt;
@@ -141,7 +141,7 @@ int get_jtfile(const char *filename, int
 		return 0;
 	dir = dirname(dirt);
 
-	snprintf(jtfile, PATH_MAX, "%s/.%s.jio/%d", dir, base, tid);
+	snprintf(jtfile, PATH_MAX, "%s/.%s.jio/%u", dir, base, tid);
 
 	free(baset);
 	free(dirt);
diff -puN common.h~tid_is_unsigned common.h
--- cur/common.h~tid_is_unsigned	2004-10-04 12:25:05.251172880 -0300
+++ cur-root/common.h	2004-10-04 12:25:15.631594816 -0300
@@ -30,7 +30,7 @@ off_t plockf(int fd, int cmd, off_t offs
 ssize_t spread(int fd, void *buf, size_t count, off_t offset);
 ssize_t spwrite(int fd, const void *buf, size_t count, off_t offset);
 int get_jdir(const char *filename, char *jdir);
-int get_jtfile(const char *filename, int tid, char *jtfile);
+int get_jtfile(const char *filename, unsigned int tid, char *jtfile);
 
 int checksum(int fd, size_t len, uint32_t *csum);
 uint32_t checksum_map(uint8_t *map, size_t count);
_
