From 8a2381c13aecfdb42d85967e060c8818b86119d2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 8 Nov 2014 09:33:35 -0800 Subject: 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 --- src/xkmread.c | 4 ---- 1 file changed, 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) || -- cgit v1.2.3