Adjust a few prototypes to be explicit that they don't take arguments
This commit is contained in:
parent
59a9863a17
commit
efaa7b8e2a
|
@ -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]))
|
||||||
|
|
Loading…
Reference in a new issue