Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=36fc0fa4823051fa0ac5884f0a1334e0e9ceee7a

commit 36fc0fa4823051fa0ac5884f0a1334e0e9ceee7a
Author: Michel Hermier <[email protected]>
Date:   Wed May 15 12:27:28 2013 +0200

libpacman: Move constructor/destructor at the end of the file.

diff --git a/lib/libflib/fmd5.c b/lib/libflib/fmd5.c
index 406c912..464060b 100644
--- a/lib/libflib/fmd5.c
+++ b/lib/libflib/fmd5.c
@@ -46,18 +46,6 @@ typedef struct MD5_CTX {
unsigned char buffer[64];                         /* input buffer */
} MD5_CTX;

-
-FMD5 *f_md5_new () {
-       FMD5 *md5 = f_malloc (sizeof (*md5));
-
-       f_md5_init (md5);
-       return md5;
-}
-
-void f_md5_delete (FMD5 *md5) {
-       f_free (md5);
-}
-
/* Constants for MD5Transform routine.
*/

@@ -335,4 +323,17 @@ unsigned int len;
(((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
}

+FMD5 *f_md5_new () {
+       FMD5 *md5 = f_malloc (sizeof (*md5));
+
+       if (md5 != NULL) {
+               f_md5_init (md5);
+       }
+       return md5;
+}
+
+void f_md5_delete (FMD5 *md5) {
+       f_free (md5);
+}
+
/* vim: set ts=2 sw=2 noet: */
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to