Browse Source

AP_HAL_Linux: fix GCC warning in storage

mission-4.1.18
Michael du Breuil 6 years ago committed by WickedShell
parent
commit
7b7b852c75
  1. 2
      libraries/AP_HAL_Linux/Storage.cpp

2
libraries/AP_HAL_Linux/Storage.cpp

@ -115,7 +115,7 @@ int Storage::_storage_create(const char *dpath) @@ -115,7 +115,7 @@ int Storage::_storage_create(const char *dpath)
// take up all needed space
if (ftruncate(fd, sizeof(_buffer)) == -1) {
fprintf(stderr, "Failed to set file size to %u kB (%m)\n",
fprintf(stderr, "Failed to set file size to %lu kB (%m)\n",
sizeof(_buffer) / 1024);
goto fail;
}

Loading…
Cancel
Save