diff --git a/src/main.c b/src/main.c index 0aec356a8dc4f31b3e3a02c06e891a1eada7e7a0..339b1ba035e97bc27c08887bdf583ecb51944a46 100755 --- a/src/main.c +++ b/src/main.c @@ -21,8 +21,6 @@ #include #include "syscap_tool.h" -extern char *optarg; - int main(int argc, char **argv) { int32_t ret, optIndex; diff --git a/test/syscap_tool_test.c b/test/syscap_tool_test.c index c92be593ceee876b213f87a2fb16886649caaa15..1215ad6b950df43c9bc54b39ae0d2a08598d3a62 100755 --- a/test/syscap_tool_test.c +++ b/test/syscap_tool_test.c @@ -24,8 +24,6 @@ #include #include "syscap_tool.h" -extern char *optarg; - char *g_testFilePcid = "{\n \"api_version\": 0,\n \"manufacturer_id\": 0,\n \"product\": \"rk3568\",\n" \ " \"syscap\": {\n \"os\": [\n \"SystemCapability.Account.AppAccount\",\n" \ " \"SystemCapability.Account.OsAccount\"\n ]\n },\n" \