[claws-mail-cvs-commit] utils.c

Colin Leroy <[email protected]> Fri, 21 Aug 2009 15:56:32 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /srv/cvs/claws-mail/claws/src/common
In directory ran:/tmp/cvs-serv18343/src/common

Modified Files:
      Tag: gtk2
	utils.c 
Log Message:
2009-08-21 [colin]	3.7.2cvs22

	* src/compose.c
	* src/prefs_common.c
	* src/prefs_common.h
	* src/prefs_compose_writing.c
	* src/common/utils.c
		Fix bug 1986, "New feature: warn user when inserting 
		a large file in the message body". Patch by Didier
		Barvaux

Index: utils.c
===================================================================
RCS file: /srv/cvs/claws-mail/claws/src/common/utils.c,v
retrieving revision 1.36.2.173
retrieving revision 1.36.2.174
diff -u -d -r1.36.2.173 -r1.36.2.174
--- utils.c	21 Aug 2009 15:54:01 -0000	1.36.2.173
+++ utils.c	21 Aug 2009 15:56:29 -0000	1.36.2.174
@@ -346,6 +346,13 @@
 	d = (d*100) >> divisor;		\
 }
 
+
+/*!
+ * \brief Convert a given size in bytes in a human-readable string
+ *
+ * \param size  The size expressed in bytes to convert in string
+ * \return      The string that respresents the size in an human-readable way
+ */
 gchar *to_human_readable(goffset size)
 {
 	static gchar str[14];