Skip to content
Snippets Groups Projects
Commit dbed5c58 authored by Simon McVittie's avatar Simon McVittie
Browse files

fdio: Be const-correct for struct stat


We don't modify this struct (if non-NULL), so it can be const. In
particular, this is helpful if calling glnx_file_copy_at() from
nftw() to implement the equivalent of `cp -a --reflink=auto`.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent fc9073e7
No related branches found
No related tags found
No related merge requests found
...@@ -939,7 +939,7 @@ glnx_regfile_copy_bytes (int fdf, int fdt, off_t max_bytes) ...@@ -939,7 +939,7 @@ glnx_regfile_copy_bytes (int fdf, int fdt, off_t max_bytes)
gboolean gboolean
glnx_file_copy_at (int src_dfd, glnx_file_copy_at (int src_dfd,
const char *src_subpath, const char *src_subpath,
struct stat *src_stbuf, const struct stat *src_stbuf,
int dest_dfd, int dest_dfd,
const char *dest_subpath, const char *dest_subpath,
GLnxFileCopyFlags copyflags, GLnxFileCopyFlags copyflags,
......
...@@ -193,7 +193,7 @@ typedef enum { ...@@ -193,7 +193,7 @@ typedef enum {
gboolean gboolean
glnx_file_copy_at (int src_dfd, glnx_file_copy_at (int src_dfd,
const char *src_subpath, const char *src_subpath,
struct stat *src_stbuf, const struct stat *src_stbuf,
int dest_dfd, int dest_dfd,
const char *dest_subpath, const char *dest_subpath,
GLnxFileCopyFlags copyflags, GLnxFileCopyFlags copyflags,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment