summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-10-09 11:14:14 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-10-09 11:14:14 +0200
commit325163c0ef02c023a3fa270f93008eb771e5d50c (patch)
treea6b50a6614a17d53bc27f8792808048d225bbea5 /tools.h
parent22ee421be95e973121675849767ea76d9932a757 (diff)
downloadvdr-325163c0ef02c023a3fa270f93008eb771e5d50c.tar.gz
vdr-325163c0ef02c023a3fa270f93008eb771e5d50c.tar.bz2
Added '__attribute__' to functions that use printf() like parameters
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.h b/tools.h
index 97f42626..83bdeb41 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.79 2005/10/01 12:43:31 kls Exp $
+ * $Id: tools.h 1.80 2005/10/09 11:13:06 kls Exp $
*/
#ifndef __TOOLS_H
@@ -81,7 +81,7 @@ public:
operator const char * () const { return s; } // for use in (const char *) context
const char * operator*() const { return s; } // for use in (const void *) context (printf() etc.)
cString &operator=(const cString &String);
- static cString sprintf(const char *fmt, ...);
+ static cString sprintf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
};
ssize_t safe_read(int filedes, void *buffer, size_t size);