Date: Tue, 22 Mar 2016 22:41:10 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297202 - head/sys/dev/filemon Message-ID: <201603222241.u2MMfArH090119@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Tue Mar 22 22:41:10 2016 New Revision: 297202 URL: https://svnweb.freebsd.org/changeset/base/297202 Log: Remove unused done argument to copyinstr(9). MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Modified: head/sys/dev/filemon/filemon_wrapper.c Modified: head/sys/dev/filemon/filemon_wrapper.c ============================================================================== --- head/sys/dev/filemon/filemon_wrapper.c Tue Mar 22 22:41:07 2016 (r297201) +++ head/sys/dev/filemon/filemon_wrapper.c Tue Mar 22 22:41:10 2016 (r297202) @@ -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 __u 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 *t 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",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603222241.u2MMfArH090119>