From 4a9a2afb7b2d86ea674d59e2680245a8c92fbd6a Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Thu, 19 Jun 2014 11:28:23 +0200 Subject: [PATCH] jscan(8): Remove dupdata() (no longer used since 36d6bdee113b682f2). --- sbin/jscan/jscan.h | 3 --- sbin/jscan/subs.c | 13 ------------- 2 files changed, 16 deletions(-) diff --git a/sbin/jscan/jscan.h b/sbin/jscan/jscan.h index 27584131f7..1e86fd565a 100644 --- a/sbin/jscan/jscan.h +++ b/sbin/jscan/jscan.h @@ -30,8 +30,6 @@ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $DragonFly: src/sbin/jscan/jscan.h,v 1.10 2005/09/07 19:10:09 dillon Exp $ */ #include @@ -162,7 +160,6 @@ const char *type_to_name(int16_t rectype); void stringout(FILE *fp, char c, int exact); void jattr_reset(struct jattr *jattr); int64_t buf_to_int64(const void *buf, int bytes); -void *dupdata(const void *buf, int bytes); char *dupdatastr(const void *buf, int bytes); char *dupdatapath(const void *buf, int bytes); void get_transid_from_file(const char *path, int64_t *transid, int flags); diff --git a/sbin/jscan/subs.c b/sbin/jscan/subs.c index 8f2e127bf1..9ca968f2b5 100644 --- a/sbin/jscan/subs.c +++ b/sbin/jscan/subs.c @@ -30,8 +30,6 @@ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $DragonFly: src/sbin/jscan/subs.c,v 1.8 2005/09/07 19:10:09 dillon Exp $ */ #include "jscan.h" @@ -300,17 +298,6 @@ buf_to_int64(const void *buf, int bytes) return(v); } -void * -dupdata(const void *buf, int bytes) -{ - void *res; - - res = malloc(bytes); - bcopy(buf, res, bytes); - - return(res); -} - char * dupdatastr(const void *buf, int bytes) { -- 2.41.0