diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-03-22 22:41:10 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-03-22 22:41:10 +0000 |
commit | eac5c9f26f28a22f565c339b89324f7b4ed273a3 (patch) | |
tree | e361a11ce7cf9c9e681ae63db6867ce1a5ff6057 /sys/dev/filemon | |
parent | 4177d9f7d3bc8e8bbf8d7bc6fc0df86028e7b066 (diff) | |
download | src-eac5c9f26f28a22f565c339b89324f7b4ed273a3.tar.gz src-eac5c9f26f28a22f565c339b89324f7b4ed273a3.zip |
Remove unused done argument to copyinstr(9).
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=297202
Diffstat (limited to 'sys/dev/filemon')
-rw-r--r-- | sys/dev/filemon/filemon_wrapper.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/filemon/filemon_wrapper.c b/sys/dev/filemon/filemon_wrapper.c index 3270600efcbb..58ede780553f 100644 --- a/sys/dev/filemon/filemon_wrapper.c +++ b/sys/dev/filemon/filemon_wrapper.c @@ -73,14 +73,13 @@ static int filemon_wrapper_chdir(struct thread *td, struct chdir_args *uap) { int ret; - size_t done; size_t len; struct filemon *filemon; if ((ret = sys_chdir(td, uap)) == 0) { if ((filemon = filemon_proc_get(curproc)) != NULL) { copyinstr(uap->path, filemon->fname1, - sizeof(filemon->fname1), &done); + sizeof(filemon->fname1), NULL); len = snprintf(filemon->msgbufr, sizeof(filemon->msgbufr), "C %d %s\n", @@ -124,7 +123,6 @@ filemon_event_process_exec(void *arg __unused, struct proc *p, static void _filemon_wrapper_openat(struct thread *td, char *upath, int flags, int fd) { - size_t done; size_t len; struct file *fp; struct filemon *filemon; @@ -137,7 +135,7 @@ _filemon_wrapper_openat(struct thread *td, char *upath, int flags, int fd) fp = NULL; copyinstr(upath, filemon->fname1, - sizeof(filemon->fname1), &done); + sizeof(filemon->fname1), NULL); if (filemon->fname1[0] != '/' && fd != AT_FDCWD) { /* @@ -216,16 +214,15 @@ static int filemon_wrapper_rename(struct thread *td, struct rename_args *uap) { int ret; - size_t done; size_t len; struct filemon *filemon; if ((ret = sys_rename(td, uap)) == 0) { if ((filemon = filemon_proc_get(curproc)) != NULL) { copyinstr(uap->from, filemon->fname1, - sizeof(filemon->fname1), &done); + sizeof(filemon->fname1), NULL); copyinstr(uap->to, filemon->fname2, - sizeof(filemon->fname2), &done); + sizeof(filemon->fname2), NULL); len = snprintf(filemon->msgbufr, sizeof(filemon->msgbufr), "M %d '%s' '%s'\n", @@ -326,14 +323,13 @@ static int filemon_wrapper_unlink(struct thread *td, struct unlink_args *uap) { int ret; - size_t done; size_t len; struct filemon *filemon; if ((ret = sys_unlink(td, uap)) == 0) { if ((filemon = filemon_proc_get(curproc)) != NULL) { copyinstr(uap->path, filemon->fname1, - sizeof(filemon->fname1), &done); + sizeof(filemon->fname1), NULL); len = snprintf(filemon->msgbufr, sizeof(filemon->msgbufr), "D %d %s\n", |