Browse Source

[libc] Add missing __attribute__ (( format ( printf ) )) to ssnprintf()

tags/v0.9.4
Michael Brown 16 years ago
parent
commit
7ad2f652b4
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/include/gpxe/vsprintf.h

+ 2
- 1
src/include/gpxe/vsprintf.h View File

66
 			 va_list args );
66
 			 va_list args );
67
 extern int vssnprintf ( char *buf, ssize_t ssize, const char *fmt,
67
 extern int vssnprintf ( char *buf, ssize_t ssize, const char *fmt,
68
 			va_list args );
68
 			va_list args );
69
-extern int ssnprintf ( char *buf, ssize_t ssize, const char *fmt, ... );
69
+extern int __attribute__ (( format ( printf, 3, 4 ) ))
70
+ssnprintf ( char *buf, ssize_t ssize, const char *fmt, ... );
70
 
71
 
71
 #endif /* _GPXE_VSPRINTF_H */
72
 #endif /* _GPXE_VSPRINTF_H */

Loading…
Cancel
Save