Adjust a few prototypes to be explicit that they don't take arguments

This commit is contained in:
Frans Kaashoek 2020-08-21 10:55:34 -04:00
parent 2a4a8764a5
commit 0bb2533f73

View file

@ -62,13 +62,13 @@ void ramdiskrw(struct buf*);
// kalloc.c // kalloc.c
void* kalloc(void); void* kalloc(void);
void kfree(void *); void kfree(void *);
void kinit(); void kinit(void);
// log.c // log.c
void initlog(int, struct superblock*); void initlog(int, struct superblock*);
void log_write(struct buf*); void log_write(struct buf*);
void begin_op(); void begin_op(void);
void end_op(); void end_op(void);
// pipe.c // pipe.c
int pipealloc(struct file**, struct file**); int pipealloc(struct file**, struct file**);
@ -181,7 +181,7 @@ void plic_complete(int);
// virtio_disk.c // virtio_disk.c
void virtio_disk_init(void); void virtio_disk_init(void);
void virtio_disk_rw(struct buf *, int); void virtio_disk_rw(struct buf *, int);
void virtio_disk_intr(); void virtio_disk_intr(void);
// number of elements in fixed-size array // number of elements in fixed-size array
#define NELEM(x) (sizeof(x)/sizeof((x)[0])) #define NELEM(x) (sizeof(x)/sizeof((x)[0]))