1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: old style gcc

This commit is contained in:
Zdenek Kabelac 2013-02-05 16:48:48 +01:00
parent d97605beaf
commit e566faaae6

6
lib/cache/lvmetad.c vendored
View File

@ -46,7 +46,7 @@ void lvmetad_init(struct cmd_context *cmd)
_lvmetad_cmd = cmd; _lvmetad_cmd = cmd;
} }
static void _lvmetad_connect() static void _lvmetad_connect(void)
{ {
if (!_lvmetad_use || !_lvmetad_socket || _lvmetad_connected) if (!_lvmetad_use || !_lvmetad_socket || _lvmetad_connected)
return; return;
@ -156,8 +156,10 @@ retry:
static int _token_update(void) static int _token_update(void)
{ {
daemon_reply repl;
log_debug_lvmetad("Sending updated token to lvmetad: %s", _lvmetad_token ? : "<NONE>"); log_debug_lvmetad("Sending updated token to lvmetad: %s", _lvmetad_token ? : "<NONE>");
daemon_reply repl = _lvmetad_send("token_update", NULL); repl = _lvmetad_send("token_update", NULL);
if (repl.error || strcmp(daemon_reply_str(repl, "response", ""), "OK")) { if (repl.error || strcmp(daemon_reply_str(repl, "response", ""), "OK")) {
daemon_reply_destroy(repl); daemon_reply_destroy(repl);