summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-25 12:11:21 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-25 12:11:21 -0300
commitd35ece00b2339bc242b7f01dd49aa08cc00cbd87 (patch)
tree53940014e760623963cebc7af8773fed34d26a6b /gui
parentaeffb42b88bf866861120e17b0796667a26434f7 (diff)
downloadeeshow-d35ece00b2339bc242b7f01dd49aa08cc00cbd87.tar.gz
eeshow-d35ece00b2339bc242b7f01dd49aa08cc00cbd87.tar.bz2
eeshow-d35ece00b2339bc242b7f01dd49aa08cc00cbd87.zip
gui/gui.c (get_sheets): use "sch" for "struct sheet *", not "sheet"
We use the latter for "struct gui_sheet *"
Diffstat (limited to 'gui')
-rw-r--r--gui/gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/gui.c b/gui/gui.c
index 19e9c78..f203f6c 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -159,14 +159,14 @@ void mark_aois(struct gui *gui, struct gui_sheet *sheet)
static struct gui_sheet *get_sheets(struct gui *gui, struct gui_hist *hist,
const struct sheet *sheets)
{
- const struct sheet *sheet;
+ const struct sheet *sch;
struct gui_sheet *gui_sheets = NULL;
struct gui_sheet **next = &gui_sheets;
struct gui_sheet *new;
- for (sheet = sheets; sheet; sheet = sheet->next) {
+ for (sch = sheets; sch; sch = sch->next) {
new = alloc_type(struct gui_sheet);
- new->sch = sheet;
+ new->sch = sch;
new->gui = gui;
new->hist = hist;
new->gfx_thumb = NULL;