Skip to content

Commit 52120f4

Browse files
stroxlerfacebook-github-bot
authored andcommitted
Clean up another c qualifier error
Summary: Filenames are `const char *`, not `char *` and the `statfs` interface respects this; we should as well. Reviewed By: grievejia Differential Revision: D28464007 fbshipit-source-id: 10cbe9875d9f036a075a7b0ca09834170555a431
1 parent f1e3b1d commit 52120f4

File tree

1 file changed

+1
-1
lines changed
  • source/hack_parallel/hack_parallel/utils

1 file changed

+1
-1
lines changed

source/hack_parallel/hack_parallel/utils/files.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ value hh_is_nfs(value filename_v) {
3737
CAMLparam1(filename_v);
3838
#ifdef __linux__
3939
struct statfs buf;
40-
char* filename = String_val(filename_v);
40+
const char* filename = String_val(filename_v);
4141
int success = statfs(filename, &buf);
4242
if (success != 0) {
4343
caml_failwith("statfs failed");

0 commit comments

Comments
 (0)