summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-08 09:33:35 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-08 09:37:18 -0800
commit8a2381c13aecfdb42d85967e060c8818b86119d2 (patch)
tree37aee0d3db420204deb554a66cf624af917c7d99
parent3b460259d0d21f9876cacd7e1f305d77b76724f7 (diff)
Remove check to see if SEEK_SET is defined before using it
Other references to SEEK_SET in this file are made without checking, since they assume everyone has either reached C89 by now or will use the fallback #define at the top of the file, so we can stop checking here as well. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/xkmread.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/xkmread.c b/src/xkmread.c
index 7c88241..ea7c792 100644
--- a/src/xkmread.c
+++ b/src/xkmread.c
@@ -1261,11 +1261,7 @@ XkmReadFile(FILE *file, unsigned need, unsigned want, XkbFileInfo *result)
if (result->xkb == NULL)
result->xkb = XkbAllocKeyboard();
for (i = 0; i < fileInfo.num_toc; i++) {
-#ifdef SEEK_SET
fseek(file, toc[i].offset, SEEK_SET);
-#else
- fseek(file, toc[i].offset, 0);
-#endif
tmp = fread(&tmpTOC, SIZEOF(xkmSectionInfo), 1, file);
nRead = tmp * SIZEOF(xkmSectionInfo);
if ((tmpTOC.type != toc[i].type) || (tmpTOC.format != toc[i].format) ||