projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gfileutils: Add missing g_free() in error path
[platform/upstream/glib.git]
/
glib
/
gchecksum.c
diff --git
a/glib/gchecksum.c
b/glib/gchecksum.c
index
f5e9ba8
..
9107e78
100644
(file)
--- a/
glib/gchecksum.c
+++ b/
glib/gchecksum.c
@@
-13,9
+13,7
@@
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
*/
#include "config.h"
@@
-235,7
+233,7
@@
static void
md5_transform (guint32 buf[4],
guint32 const in[16])
{
md5_transform (guint32 buf[4],
guint32 const in[16])
{
-
register
guint32 a, b, c, d;
+ guint32 a, b, c, d;
/* The four core functions - F1 is optimized somewhat */
#define F1(x, y, z) (z ^ (x & (y ^ z)))
/* The four core functions - F1 is optimized somewhat */
#define F1(x, y, z) (z ^ (x & (y ^ z)))
@@
-1374,7
+1372,7
@@
sha512_sum_digest (Sha512sum *sha512,
*
* Gets the length in bytes of digests of type @checksum_type
*
*
* Gets the length in bytes of digests of type @checksum_type
*
- * Return
value
: the checksum length, or -1 if @checksum_type is
+ * Return
s
: the checksum length, or -1 if @checksum_type is
* not supported.
*
* Since: 2.16
* not supported.
*
* Since: 2.16
@@
-1424,7
+1422,7
@@
g_checksum_type_get_length (GChecksumType checksum_type)
* will be closed and it won't be possible to call g_checksum_update()
* on it anymore.
*
* will be closed and it won't be possible to call g_checksum_update()
* on it anymore.
*
- * Return
value
: (transfer full): the newly created #GChecksum, or %NULL.
+ * Return
s
: (transfer full): the newly created #GChecksum, or %NULL.
* Use g_checksum_free() to free the memory allocated by it.
*
* Since: 2.16
* Use g_checksum_free() to free the memory allocated by it.
*
* Since: 2.16
@@
-1489,7
+1487,7
@@
g_checksum_reset (GChecksum *checksum)
* g_checksum_get_string() or g_checksum_get_digest(), the copied
* checksum will be closed as well.
*
* g_checksum_get_string() or g_checksum_get_digest(), the copied
* checksum will be closed as well.
*
- * Return
value
: the copy of the passed #GChecksum. Use g_checksum_free()
+ * Return
s
: the copy of the passed #GChecksum. Use g_checksum_free()
* when finished using it.
*
* Since: 2.16
* when finished using it.
*
* Since: 2.16
@@
-1553,7
+1551,7
@@
g_checksum_update (GChecksum *checksum,
if (checksum->digest_str)
{
if (checksum->digest_str)
{
- g_warning ("The checksum
`
%s' has been closed and cannot be updated "
+ g_warning ("The checksum
'
%s' has been closed and cannot be updated "
"anymore.",
checksum->digest_str);
return;
"anymore.",
checksum->digest_str);
return;
@@
-1590,7
+1588,7
@@
g_checksum_update (GChecksum *checksum,
*
* The hexadecimal characters will be lower case.
*
*
* The hexadecimal characters will be lower case.
*
- * Return
value
: the hexadecimal representation of the checksum. The
+ * Return
s
: the hexadecimal representation of the checksum. The
* returned string is owned by the checksum and should not be modified
* or freed.
*
* returned string is owned by the checksum and should not be modified
* or freed.
*
@@
-1722,7
+1720,7
@@
g_checksum_get_digest (GChecksum *checksum,
*
* The hexadecimal string returned will be in lower case.
*
*
* The hexadecimal string returned will be in lower case.
*
- * Return
value
: the digest of the binary data as a string in hexadecimal.
+ * Return
s
: the digest of the binary data as a string in hexadecimal.
* The returned string should be freed with g_free() when done using it.
*
* Since: 2.16
* The returned string should be freed with g_free() when done using it.
*
* Since: 2.16
@@
-1759,7
+1757,7
@@
g_compute_checksum_for_data (GChecksumType checksum_type,
*
* The hexadecimal string returned will be in lower case.
*
*
* The hexadecimal string returned will be in lower case.
*
- * Return
value
: the checksum as a hexadecimal string. The returned string
+ * Return
s
: the checksum as a hexadecimal string. The returned string
* should be freed with g_free() when done using it.
*
* Since: 2.16
* should be freed with g_free() when done using it.
*
* Since: 2.16
@@
-1789,7
+1787,7
@@
g_compute_checksum_for_string (GChecksumType checksum_type,
*
* The hexadecimal string returned will be in lower case.
*
*
* The hexadecimal string returned will be in lower case.
*
- * Return
value
: the digest of the binary data as a string in hexadecimal.
+ * Return
s
: the digest of the binary data as a string in hexadecimal.
* The returned string should be freed with g_free() when done using it.
*
* Since: 2.34
* The returned string should be freed with g_free() when done using it.
*
* Since: 2.34