copy: change the various copy_xyz() calls to take a unified flags parameter
This adds a unified "copy_flags" parameter to all copy_xyz() function calls, replacing the various boolean flags so far used. This should make many invocations more readable as it is clear what behaviour is precisely requested. This also prepares ground for adding support for more modes later on.
This commit is contained in:
+2
-2
@@ -1340,11 +1340,11 @@ static int usbffs_write_descs(int fd, Service *s) {
|
||||
if (!s->usb_function_descriptors || !s->usb_function_strings)
|
||||
return -EINVAL;
|
||||
|
||||
r = copy_file_fd(s->usb_function_descriptors, fd, false);
|
||||
r = copy_file_fd(s->usb_function_descriptors, fd, 0);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
return copy_file_fd(s->usb_function_strings, fd, false);
|
||||
return copy_file_fd(s->usb_function_strings, fd, 0);
|
||||
}
|
||||
|
||||
static int usbffs_select_ep(const struct dirent *d) {
|
||||
|
||||
Reference in New Issue
Block a user