From: Ben Pfaff Date: Fri, 9 Jan 2009 01:16:41 +0000 (-0800) Subject: Use xstrdup() instead of xasprintf() for duplicating constant string. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c528af3a6411f519db407abb8f96b9c98b422aa;p=openvswitch Use xstrdup() instead of xasprintf() for duplicating constant string. --- diff --git a/utilities/vlogconf.c b/utilities/vlogconf.c index c6a891a4..1187dcc2 100644 --- a/utilities/vlogconf.c +++ b/utilities/vlogconf.c @@ -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); }