summaryrefslogtreecommitdiffstats
path: root/firmware/libc
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-20 08:55:45 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-20 08:55:45 +0000
commit5a98ad2d7fd9980b6adc0f6383f1dc19560858dc (patch)
tree479160253c65a109f04e15997b35c6320c107b37 /firmware/libc
parentcc6ef19dd97a5dbbd901f9dbede5f65ef60c4a6f (diff)
downloadrockbox-5a98ad2d7fd9980b6adc0f6383f1dc19560858dc.tar.gz
rockbox-5a98ad2d7fd9980b6adc0f6383f1dc19560858dc.tar.bz2
rockbox-5a98ad2d7fd9980b6adc0f6383f1dc19560858dc.zip
format() (and its alias vuprintf) return values are uncheck -> void
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28119 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/libc')
-rw-r--r--firmware/libc/sprintf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/libc/sprintf.c b/firmware/libc/sprintf.c
index b02f5a2fae..18e2ce6fd2 100644
--- a/firmware/libc/sprintf.c
+++ b/firmware/libc/sprintf.c
@@ -57,7 +57,6 @@ static int sprfunc(void *ptr, unsigned char letter)
int snprintf(char *buf, size_t size, const char *fmt, ...)
{
- bool ok;
va_list ap;
struct for_snprintf pr;
@@ -66,7 +65,7 @@ int snprintf(char *buf, size_t size, const char *fmt, ...)
pr.max = size;
va_start(ap, fmt);
- ok = format(sprfunc, &pr, fmt, ap);
+ format(sprfunc, &pr, fmt, ap);
va_end(ap);
/* make sure it ends with a trailing zero */
@@ -77,14 +76,13 @@ int snprintf(char *buf, size_t size, const char *fmt, ...)
int vsnprintf(char *buf, size_t size, const char *fmt, va_list ap)
{
- bool ok;
struct for_snprintf pr;
pr.ptr = (unsigned char *)buf;
pr.bytes = 0;
pr.max = size;
- ok = format(sprfunc, &pr, fmt, ap);
+ format(sprfunc, &pr, fmt, ap);
/* make sure it ends with a trailing zero */
pr.ptr[(pr.bytes < pr.max) ? 0 : -1] = '\0';