Use xstrdup() instead of xasprintf() for duplicating constant string.
authorBen Pfaff <blp@nicira.com>
Fri, 9 Jan 2009 01:16:41 +0000 (17:16 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 13 Jan 2009 01:00:29 +0000 (17:00 -0800)
utilities/vlogconf.c

index c6a891a4f914f6e036f78dc6e31e6b3358c66aeb..1187dcc21f54fd3d60fb0ef11cbd5a3c82a5f9a6 100644 (file)
@@ -210,7 +210,7 @@ int main(int argc, char *argv[])
         case 'r':
             for (i = 0; i < n_clients; i++) {
                 struct vlog_client *client = clients[i];
-                char *request = xasprintf("reopen");
+                char *request = xstrdup("reopen");
                 transact_ack(client, request, &ok);
                 free(request);
             }