OSDN Git Service

[libc][obvious] Fix strtok_r signature in the spec.
authorSiva Chandra Reddy <sivachandra@google.com>
Wed, 9 Sep 2020 15:32:51 +0000 (08:32 -0700)
committerSiva Chandra Reddy <sivachandra@google.com>
Wed, 9 Sep 2020 16:50:17 +0000 (09:50 -0700)
libc/spec/posix.td

index c20cbef..1bf64f0 100644 (file)
@@ -228,7 +228,9 @@ def POSIX : StandardSpec<"POSIX"> {
         FunctionSpec<
             "strtok_r",
             RetValSpec<CharPtr>,
-            [ArgSpec<ConstRestrictedCharPtr>, ArgSpec<CharRestrictedDoublePtr>]
+            [ArgSpec<RestrictedCharPtr>,
+             ArgSpec<ConstRestrictedCharPtr>,
+             ArgSpec<CharRestrictedDoublePtr>]
         >,
     ]
   >;