diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-02-05 12:50:47 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-02-05 12:50:47 +0000 |
commit | fa3e5609abf9c87862207239177e62f491476027 (patch) | |
tree | 4c0708acb2b9e723f33135ba031b4809171c48d9 /gtk | |
parent | 3e07757e58905e8451b57b5a8b642f80f0049643 (diff) | |
download | wireshark-fa3e5609abf9c87862207239177e62f491476027.tar.gz wireshark-fa3e5609abf9c87862207239177e62f491476027.tar.bz2 wireshark-fa3e5609abf9c87862207239177e62f491476027.zip |
Put "cf_status_t" back.
svn path=/trunk/; revision=13303
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/file_dlg.c | 12 | ||||
-rw-r--r-- | gtk/main.c | 20 |
2 files changed, 16 insertions, 16 deletions
diff --git a/gtk/file_dlg.c b/gtk/file_dlg.c index 8f35fd916f..53b1295990 100644 --- a/gtk/file_dlg.c +++ b/gtk/file_dlg.c @@ -715,14 +715,14 @@ file_open_ok_cb(GtkWidget *w, gpointer fs) { switch (cf_read(&cfile)) { - case CF_OK: - case CF_ERROR: + case CF_READ_OK: + case CF_READ_ERROR: /* Just because we got an error, that doesn't mean we were unable to read any of the file; we handle what we could get from the file. */ break; - case CF_ABORTED: + case CF_READ_ABORTED: /* The user bailed out of re-reading the capture file; the capture file has been closed - just free the capture file name string and return (without changing the last containing @@ -1086,14 +1086,14 @@ file_merge_ok_cb(GtkWidget *w, gpointer fs) { switch (cf_read(&cfile)) { - case CF_OK: - case CF_ERROR: + case CF_READ_OK: + case CF_READ_ERROR: /* Just because we got an error, that doesn't mean we were unable to read any of the file; we handle what we could get from the file. */ break; - case CF_ABORTED: + case CF_READ_ABORTED: /* The user bailed out of re-reading the capture file; the capture file has been closed - just free the capture file name string and return (without changing the last containing diff --git a/gtk/main.c b/gtk/main.c index 93d4224c36..a236daf7d1 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -511,15 +511,15 @@ main_filter_packets(capture_file *cf, const gchar *dftext, gboolean force) gboolean add_filter = TRUE; gboolean free_filter = TRUE; char *s; - gboolean status; + cf_status_t cf_status; s = g_strdup(dftext); /* GtkCombos don't let us get at their list contents easily, so we maintain our own filter list, and feed it to gtk_combo_set_popdown_strings when a new filter is added. */ - status = cf_filter_packets(cf, s, force); - if (status) { + cf_status = cf_filter_packets(cf, s, force); + if (cf_status == CF_OK) { li = g_list_first(filter_list); while (li) { if (li->data && strcmp(s, li->data) == 0) @@ -543,7 +543,7 @@ main_filter_packets(capture_file *cf, const gchar *dftext, gboolean force) if (free_filter) g_free(s); - return status; + return (cf_status == CF_OK); } @@ -1443,14 +1443,14 @@ dnd_merge_files(int in_file_count, char **in_filenames) switch (cf_read(&cfile)) { - case CF_OK: - case CF_ERROR: + case CF_READ_OK: + case CF_READ_ERROR: /* Just because we got an error, that doesn't mean we were unable to read any of the file; we handle what we could get from the file. */ break; - case CF_ABORTED: + case CF_READ_ABORTED: /* The user bailed out of re-reading the capture file; the capture file has been closed - just free the capture file name string and return (without changing the last containing @@ -2581,14 +2581,14 @@ main(int argc, char *argv[]) /* Read the capture file. */ switch (cf_read(&cfile)) { - case CF_OK: - case CF_ERROR: + case CF_READ_OK: + case CF_READ_ERROR: /* Just because we got an error, that doesn't mean we were unable to read any of the file; we handle what we could get from the file. */ break; - case CF_ABORTED: + case CF_READ_ABORTED: /* Exit now. */ gtk_exit(0); break; |