summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-07 10:52:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-07 11:32:44 +0200
commitf9e5b678ec02aaf62b73518b69b881ab1666937e (patch)
tree71d7531909650e17e9ac2626a0b75fdd3aae9c9e /hwpfilter
parent41e2f345486f3e5acf7a240e52146fe9b2811c6f (diff)
Reduce variable scope
Change-Id: I5d2d7e7991c3727ed6367fe22ebddd5c2e2e9265
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/drawing.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/hwpfilter/source/drawing.h b/hwpfilter/source/drawing.h
index 6ede0ea2e39f..2ccaa7311daa 100644
--- a/hwpfilter/source/drawing.h
+++ b/hwpfilter/source/drawing.h
@@ -321,7 +321,6 @@ static HWPDrawingObject *LoadDrawingObject(void)
fprintf(stderr, "LoadDrawingObject\n");
HWPDrawingObject *hdo, *head, *prev;
- int res;
unsigned short link_info;
@@ -343,7 +342,7 @@ static HWPDrawingObject *LoadDrawingObject(void)
}
else
{
- switch (res = HWPDOFunc(hdo, OBJFUNC_LOAD, NULL, 0))
+ switch (int res = HWPDOFunc(hdo, OBJFUNC_LOAD, NULL, 0))
{
case OBJRET_FILE_ERROR:
goto error;