Skip to content

Commit c52e632

Browse files
committed
[GR-19220] Add semicolon to the buffer atime assignment (#2661)
PullRequest: truffleruby/3362
2 parents e734372 + 012ae87 commit c52e632

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

mx.truffleruby/suite.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,11 @@
306306
"native": True,
307307
"dir": "src/main/c",
308308
"buildDependencies": [
309-
"truffle:TRUFFLE_NFI_NATIVE", # trufflenfi.h
310309
"sulong:SULONG_BOOTSTRAP_TOOLCHAIN", # graalvm-native-clang
311310
"sulong:SULONG_HOME", # polyglot.h
312311
"TRUFFLERUBY-BOOTSTRAP-LAUNCHER",
313312
],
314313
"buildEnv": {
315-
"NFI_HEADERS_DIR": "<path:truffle:TRUFFLE_NFI_NATIVE>/include",
316314
"TRUFFLERUBY_BOOTSTRAP_LAUNCHER": "<path:TRUFFLERUBY-BOOTSTRAP-LAUNCHER>/miniruby",
317315
"GRAALVM_TOOLCHAIN_CC": "<toolchainGetToolPath:native,CC>",
318316
},

src/main/c/truffleposix/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ libtruffleposix.$(SOEXT): truffleposix.o Makefile
2626
$(Q) $(CC) -shared $(LDFLAGS) -o $@ $<
2727

2828
truffleposix.o: truffleposix.c Makefile
29-
$(Q) $(CC) -o $@ -c $(CFLAGS) $(LDFLAGS) -I$(NFI_HEADERS_DIR) -I$(RUBY_HDR_DIR) $<
29+
$(Q) $(CC) -o $@ -c $(CFLAGS) $(LDFLAGS) -I$(RUBY_HDR_DIR) $<

src/main/c/truffleposix/truffleposix.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ SUCH DAMAGE.
6969
#include <sys/sysmacros.h>
7070
#endif
7171

72-
#include <trufflenfi.h>
73-
7472
struct truffleposix_stat {
7573
uint64_t atime;
7674
uint64_t mtime;
@@ -467,7 +465,7 @@ static void copy_stat(struct stat *native_stat, struct truffleposix_stat* buffer
467465
#elif defined(HAVE_STRUCT_STAT_ST_ATIMENSEC)
468466
buffer->atime_nsec = (long)native_stat->st_atimensec;
469467
#else
470-
buffer->atime_nsec = 0
468+
buffer->atime_nsec = 0;
471469
#endif
472470
#if defined(HAVE_STRUCT_STAT_ST_MTIM)
473471
buffer->mtime_nsec = native_stat->st_mtim.tv_nsec;

0 commit comments

Comments
 (0)