]> xenbits.xensource.com Git - mini-os.git/commitdiff
Split struct file definition from its usage
authorJuergen Gross <jgross@suse.com>
Tue, 11 Jan 2022 14:58:00 +0000 (15:58 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 12 Jan 2022 11:34:50 +0000 (11:34 +0000)
Make the struct file definition standalone and use it for the
declaration of the files array.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
include/lib.h

index 39d6a18ff030bdde2aebea5f183390077a7a0e5e..a638bc92f377d11a5faf79ca6f1650048340e14a 100644 (file)
@@ -181,7 +181,7 @@ struct evtchn_port_info {
         int bound;
 };
 
-extern struct file {
+struct file {
     enum fd_type type;
     union {
        struct {
@@ -236,7 +236,9 @@ extern struct file {
 #endif
     };
     int read;  /* maybe available for read */
-} files[];
+};
+
+extern struct file files[];
 
 int alloc_fd(enum fd_type type);
 void close_all_files(void);