tags 392166 +patch thanks Hello,
with the attached patch 'cramfsswap' can be compiled on unstable. Regards Andreas Jochens diff -urN ../tmp-orig/cramfsswap-1.1/cramfsswap.c ./cramfsswap.c --- ../tmp-orig/cramfsswap-1.1/cramfsswap.c 2005-01-04 11:48:08.000000000 +0000 +++ ./cramfsswap.c 2006-10-10 18:18:29.000000000 +0000 @@ -9,8 +9,8 @@ */ #include <stdio.h> -#include <sys/types.h> +#include <inttypes.h> #include <sys/stat.h> #include <linux/cramfs_fs.h> #include <byteswap.h> #include <zlib.h> /* for crc32 */ @@ -26,7 +25,7 @@ int main(int argc, char *argv[]) { - u32 superblock_in[16], superblock_out[16], + uint32_t superblock_in[16], superblock_out[16], flags, blockpointer_in, blockpointer_out, blockpointer_last, inode_out[3]; struct cramfs_inode inode_in, inode; @@ -36,7 +35,7 @@ unsigned char buffer[BUFFERSIZE], is_hostorder; int infile, outfile; int size; - u32 crc, *mapping; + uint32_t crc, *mapping; if ( argc != 3 ) @@ -172,8 +171,8 @@ inode.uid = bswap_16(inode_in.uid); inode.size = bswap_32(inode_in.size << 8); inode.gid = inode_in.gid; - inode.namelen = bswap_32(((u32*)&inode_in)[2]) >> 26; - inode.offset = bswap_32(((u32*)&inode_in)[2]) & 0x3FFFFFFF; + inode.namelen = bswap_32(((uint32_t*)&inode_in)[2]) >> 26; + inode.offset = bswap_32(((uint32_t*)&inode_in)[2]) & 0x3FFFFFFF; /* no need for another swap for storing */ memcpy(&inode_out, &inode, sizeof(inode)); -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]