On Friday, 30 March 2007 00:26, Tim Dijkstra wrote: > Op Thu, 29 Mar 2007 23:54:13 +0200 > schreef "Rafael J. Wysocki" <[EMAIL PROTECTED]>: > > > Okay, so the patch works. Tim, if you don't mind, I'd like to apply > > this one. > > Sure, go ahead. If I read it right the cast is now done when calling > set_swap_file().
Exactly, which IMO should be done from the beginning. :-) > > > > > > > > --- > > > > suspend.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > Index: suspend/suspend.c > > > > =================================================================== > > > > --- suspend.orig/suspend.c > > > > +++ suspend/suspend.c > > > > @@ -199,7 +199,7 @@ static inline int free_swap_pages(int de > > > > return ioctl(dev, SNAPSHOT_FREE_SWAP_PAGES, 0); > > > > } > > > > > > > > -static inline int set_swap_file(int dev, dev_t blkdev, loff_t > > > > offset) +static inline int set_swap_file(int dev, u_int32_t > > > > blkdev, loff_t offset) { > > > > struct resume_swap_area swap; > > > > int error; > > > > > > > > > > > -- If you don't have the time to read, you don't have the time or the tools to write. - Stephen King ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel