From owner-svn-src-head@freebsd.org Mon Jun 5 11:55:27 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B2C3BFD2AF; Mon, 5 Jun 2017 11:55:27 +0000 (UTC) (envelope-from tsoome@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 082B87B589; Mon, 5 Jun 2017 11:55:26 +0000 (UTC) (envelope-from tsoome@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v55BtQEP075837; Mon, 5 Jun 2017 11:55:26 GMT (envelope-from tsoome@FreeBSD.org) Received: (from tsoome@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v55BtQes075836; Mon, 5 Jun 2017 11:55:26 GMT (envelope-from tsoome@FreeBSD.org) Message-Id: <201706051155.v55BtQes075836@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tsoome set sender to tsoome@FreeBSD.org using -f From: Toomas Soome Date: Mon, 5 Jun 2017 11:55:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r319601 - head/lib/libmd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2017 11:55:27 -0000 Author: tsoome Date: Mon Jun 5 11:55:26 2017 New Revision: 319601 URL: https://svnweb.freebsd.org/changeset/base/319601 Log: ANSIfy md5 functions Update the function declarations. Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D11055 Modified: head/lib/libmd/md5c.c Modified: head/lib/libmd/md5c.c ============================================================================== --- head/lib/libmd/md5c.c Mon Jun 5 11:40:30 2017 (r319600) +++ head/lib/libmd/md5c.c Mon Jun 5 11:55:26 2017 (r319601) @@ -127,8 +127,7 @@ static unsigned char PADDING[64] = { /* MD5 initialization. Begins an MD5 operation, writing a new context. */ void -MD5Init (context) - MD5_CTX *context; +MD5Init (MD5_CTX *context) { context->count[0] = context->count[1] = 0; @@ -147,10 +146,7 @@ MD5Init (context) */ void -MD5Update (context, in, inputLen) - MD5_CTX *context; - const void *in; - unsigned int inputLen; +MD5Update (MD5_CTX *context, const void *in, unsigned int inputLen) { unsigned int i, idx, partLen; const unsigned char *input = in; @@ -190,8 +186,7 @@ MD5Update (context, in, inputLen) */ void -MD5Pad (context) - MD5_CTX *context; +MD5Pad (MD5_CTX *context) { unsigned char bits[8]; unsigned int idx, padLen; @@ -214,9 +209,7 @@ MD5Pad (context) */ void -MD5Final (digest, context) - unsigned char digest[16]; - MD5_CTX *context; +MD5Final (unsigned char digest[16], MD5_CTX *context) { /* Do padding. */ MD5Pad (context); @@ -231,9 +224,7 @@ MD5Final (digest, context) /* MD5 basic transformation. Transforms state based on block. */ static void -MD5Transform (state, block) - u_int32_t state[4]; - const unsigned char block[64]; +MD5Transform (u_int32_t state[4], const unsigned char block[64]) { u_int32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16];