Ethereal-dev: Re: [Ethereal-dev] alert_box.c: win32 linking problems und suggestions

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Wed, 11 Feb 2004 18:58:13 +0100
Guy Harris wrote:

On Wed, Feb 11, 2004 at 09:05:33AM +0100, Ulf Lamping wrote:
Nonetheless, in file.c and alert_box.c are some similar functions now, like:

cf_open_failure_alert_box
cf_write_failure_alert_box
cf_close_failure_alert_box

Which might be merged in some way with the new alert_box stuff?

Merged in what way?  I don't know whether putting stuff to handle
Wiretap error values into the new alert_box stuff would be the right
thing to do - it's probably safe, although it *could* cause confusing
error messages to be produced if, somehow, "errno" gets set to a
negative number (as it'd be interpreted as a Wiretap error number).

The ones in file.c call the alert_box.c routines for UN*X-style errno
values; they just add support for Wiretap errors.
Now I see the difference!

I was just confused, when setting a breakpoint at the alert_box.c function, try to open a nonexistent file, and got an alert dialog box, but not from the alert_box.c

Regards, ULFL