diff options
| author | matt <matt@NetBSD.org> | 2000-11-08 19:38:12 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2000-11-08 19:38:12 +0000 |
| commit | 6c15ee2986a8ffff1ad771fcaca038541b265f47 (patch) | |
| tree | 8351351c8e744c0c243fd4a9d5300bae7283d00f /sys/lib | |
| parent | 4fdbe215a1cd885792a39923365bb3e624c2f59b (diff) | |
avoid pointer addition on void pointers
Diffstat (limited to 'sys/lib')
| -rw-r--r-- | sys/lib/libsa/dosfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/lib/libsa/dosfs.c b/sys/lib/libsa/dosfs.c index da514d33754..60cca9867a1 100644 --- a/sys/lib/libsa/dosfs.c +++ b/sys/lib/libsa/dosfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: dosfs.c,v 1.2 2000/11/02 00:34:51 thorpej Exp $ */ +/* $NetBSD: dosfs.c,v 1.3 2000/11/08 19:38:12 matt Exp $ */ /* * Copyright (c) 1996, 1998 Robert Nordier @@ -241,9 +241,10 @@ out: * Read from file */ int -dosfs_read(struct open_file * fd, void *buf, size_t nbyte, size_t * resid) +dosfs_read(struct open_file * fd, void *vbuf, size_t nbyte, size_t * resid) { off_t size; + u_int8_t *buf = vbuf; u_int nb, off, clus, c, cnt, n; DOS_FILE *f = (DOS_FILE *) fd->f_fsdata; int err = 0; |
