diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common.h | 2 | ||||
| -rw-r--r-- | src/core.c | 1 | ||||
| -rw-r--r-- | src/iobuf.c | 1 | ||||
| -rw-r--r-- | src/match.c | 2 |
4 files changed, 4 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h index 57d47a0..d1c8397 100644 --- a/src/common.h +++ b/src/common.h | |||
| @@ -80,7 +80,7 @@ static inline int bitcount(unsigned v) | |||
| 80 | 80 | ||
| 81 | /* boost-style foreach bit */ | 81 | /* boost-style foreach bit */ |
| 82 | #define foreach_bit(i, m) \ | 82 | #define foreach_bit(i, m) \ |
| 83 | for (i = firstbit(m); i >= 0; i = firstbit((m) & (~0U << i + 1))) | 83 | for (i = firstbit(m); i >= 0; i = firstbit((m) & (~0U << (i + 1)))) |
| 84 | 84 | ||
| 85 | /* robust system ioctl calls */ | 85 | /* robust system ioctl calls */ |
| 86 | #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) | 86 | #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) |
| @@ -29,6 +29,7 @@ | |||
| 29 | #include "state.h" | 29 | #include "state.h" |
| 30 | #include "iobuf.h" | 30 | #include "iobuf.h" |
| 31 | #include "evbuf.h" | 31 | #include "evbuf.h" |
| 32 | #include "match.h" | ||
| 32 | 33 | ||
| 33 | static inline int istouch(const struct mtdev_slot *data, | 34 | static inline int istouch(const struct mtdev_slot *data, |
| 34 | const struct mtdev_caps *caps) | 35 | const struct mtdev_caps *caps) |
diff --git a/src/iobuf.c b/src/iobuf.c index b58fdf6..89345f3 100644 --- a/src/iobuf.c +++ b/src/iobuf.c | |||
| @@ -28,6 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | #include "iobuf.h" | 29 | #include "iobuf.h" |
| 30 | #include "state.h" | 30 | #include "state.h" |
| 31 | #include <unistd.h> | ||
| 31 | #include <poll.h> | 32 | #include <poll.h> |
| 32 | 33 | ||
| 33 | int mtdev_idle(struct mtdev *dev, int fd, int ms) | 34 | int mtdev_idle(struct mtdev *dev, int fd, int ms) |
diff --git a/src/match.c b/src/match.c index 3eb582e..fcb3045 100644 --- a/src/match.c +++ b/src/match.c | |||
| @@ -288,7 +288,7 @@ static void step4(int *ix, int *mdist, mat_t mstar, mat_t nmstar, | |||
| 288 | mat_t mprime, col_t ccol, col_t crow, int nrows, int ncols, | 288 | mat_t mprime, col_t ccol, col_t crow, int nrows, int ncols, |
| 289 | int dmin, int row, int col) | 289 | int dmin, int row, int col) |
| 290 | { | 290 | { |
| 291 | int n, rstar, cstar, primeRow, primeCol; | 291 | int rstar, cstar, primeRow, primeCol; |
| 292 | 292 | ||
| 293 | /* generate temporary copy of mstar */ | 293 | /* generate temporary copy of mstar */ |
| 294 | memcpy(nmstar, mstar, sizeof(mat_t)); | 294 | memcpy(nmstar, mstar, sizeof(mat_t)); |
