OSDN Git Service

android/system-emulator: Remove useless "static" qualifier
authorAnderson Lizardo <anderson.lizardo@openbossa.org>
Sat, 4 Jan 2014 01:55:28 +0000 (21:55 -0400)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 6 Jan 2014 19:22:39 +0000 (21:22 +0200)
The value of SYSTEM_SOCKET_PATH is just copied to another memory
location using memcpy() (on the same function), therefore the static
qualifier is unnecessary.

android/system-emulator.c

index 2dc9ad8..f1c6622 100644 (file)
@@ -185,8 +185,7 @@ static void signal_callback(int signum, void *user_data)
 
 int main(int argc, char *argv[])
 {
-       static const char SYSTEM_SOCKET_PATH[] = "\0android_system";
-
+       const char SYSTEM_SOCKET_PATH[] = "\0android_system";
        sigset_t mask;
        struct sockaddr_un addr;
        int fd;