Skip to content

Commit 306ee84

Browse files
committed
Remove C99 syntax - fixes OpenKinect#369
Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
1 parent 296c5c4 commit 306ee84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fakenect/fakenect.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ static double get_time()
9696

9797
static char *one_line(FILE *fp)
9898
{
99+
int c;
99100
int pos = 0;
100101
char *out = NULL;
101-
for (int c = fgetc(fp); !(c == '\n' || c == EOF); c = fgetc(fp))
102+
for (c = fgetc(fp); !(c == '\n' || c == EOF); c = fgetc(fp))
102103
{
103104
out = realloc(out, pos + 1);
104105
out[pos++] = c;

0 commit comments

Comments
 (0)