]> granicus.if.org Git - clang/commitdiff
Fix signature of sscanf in Builtins.def
authorHans Wennborg <hans@hanshq.net>
Mon, 12 Dec 2011 18:33:02 +0000 (18:33 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 12 Dec 2011 18:33:02 +0000 (18:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146390 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Builtins.def
test/Sema/format-strings-scanf.c

index e7c300d7c8fec838a0ead3902d4c41e9a3ad02c5..069d38efc0b222c996b080c6e0137c46fd168d71 100644 (file)
@@ -658,7 +658,7 @@ LIBBUILTIN(vsnprintf, "ic*zcC*a", "fP:2:", "stdio.h", ALL_LANGUAGES)
 LIBBUILTIN(vsprintf, "ic*cC*a",   "fP:1:", "stdio.h", ALL_LANGUAGES)
 LIBBUILTIN(scanf, "icC*.",        "fs:0:", "stdio.h", ALL_LANGUAGES)
 LIBBUILTIN(fscanf, "iP*cC*.",     "fs:1:", "stdio.h", ALL_LANGUAGES)
-LIBBUILTIN(sscanf, "ic*cC*.",     "fs:1:", "stdio.h", ALL_LANGUAGES)
+LIBBUILTIN(sscanf, "icC*cC*.",    "fs:1:", "stdio.h", ALL_LANGUAGES)
 LIBBUILTIN(vscanf, "icC*a",       "fS:0:", "stdio.h", ALL_LANGUAGES)
 LIBBUILTIN(vfscanf, "iP*cC*a",    "fS:1:", "stdio.h", ALL_LANGUAGES)
 LIBBUILTIN(vsscanf, "ic*cC*a",    "fS:1:", "stdio.h", ALL_LANGUAGES)
index c0f6b0becb256cf019063b096e851b3265c222e8..b16f4a5aa341fe3f240e583cceb747abca17fa71 100644 (file)
@@ -7,7 +7,7 @@ typedef __WCHAR_TYPE__ wchar_t;
 
 int fscanf(FILE * restrict, const char * restrict, ...) ;
 int scanf(const char * restrict, ...) ;
-int sscanf(char * restrict, const char * restrict, ...) ;
+int sscanf(const char * restrict, const char * restrict, ...) ;
 int my_scanf(const char * restrict, ...) __attribute__((__format__(__scanf__, 1, 2)));
 
 int vscanf(const char * restrict, va_list);