Re: [Suspend-devel] Reordering in resume 2/2

2007-01-23 Thread Rafael J. Wysocki
On Tuesday, 23 January 2007 20:59, Tim Dijkstra wrote: > On Tue, 23 Jan 2007 13:00:08 +0100 > "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > > > On Tuesday, 23 January 2007 10:51, Pavel Machek wrote: > > > Hi! > > > > > > > Split the opening of resume_dev and retrieval of the header from > > >

Re: [Suspend-devel] Reordering in resume 2/2

2007-01-23 Thread Tim Dijkstra
On Tue, 23 Jan 2007 13:00:08 +0100 "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > On Tuesday, 23 January 2007 10:51, Pavel Machek wrote: > > Hi! > > > > > Split the opening of resume_dev and retrieval of the header from > > > read_image into a new function. That way we can do something else if

Re: [Suspend-devel] Reordering in resume 2/2

2007-01-23 Thread Stefan Seyfried
On Tue, Jan 23, 2007 at 01:00:08PM +0100, Rafael J. Wysocki wrote: > On Tuesday, 23 January 2007 10:51, Pavel Machek wrote: > > Hi! > > > > > Split the opening of resume_dev and retrieval of the header from > > > read_image into a new function. That way we can do something else if > > > everything

Re: [Suspend-devel] Reordering in resume 2/2

2007-01-23 Thread Rafael J. Wysocki
On Tuesday, 23 January 2007 10:51, Pavel Machek wrote: > Hi! > > > Split the opening of resume_dev and retrieval of the header from > > read_image into a new function. That way we can do something else if > > everything is OK, but there just isn't an image. > > The new function return ENOMEDIUM in

Re: [Suspend-devel] Reordering in resume 2/2

2007-01-23 Thread Pavel Machek
Hi! > Split the opening of resume_dev and retrieval of the header from > read_image into a new function. That way we can do something else if > everything is OK, but there just isn't an image. > The new function return ENOMEDIUM in case of no image, better > suggestions welcome. Looks ok to me.

[Suspend-devel] Reordering in resume 2/2

2007-01-22 Thread Tim Dijkstra
Split the opening of resume_dev and retrieval of the header from read_image into a new function. That way we can do something else if everything is OK, but there just isn't an image. The new function return ENOMEDIUM in case of no image, better suggestions welcome. diff -u ../suspend-cvs-1/resume