Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bf17144

Browse files
committed
C89 compatibility fix.
1 parent b84a9f5 commit bf17144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pg_shardman.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,12 @@ shardlord_main(Datum main_arg)
197197
old_ctx = MemoryContextSwitchTo(cmd_ctx);
198198
while ((cmd = next_cmd()) != NULL)
199199
{
200+
char **opts;
201+
200202
update_cmd_status(cmd->id, "in progress");
201203
shmn_elog(DEBUG1, "Working on command %ld, %s, opts are",
202204
cmd->id, cmd->cmd_type);
203-
for (char **opts = cmd->opts; *opts; opts++)
205+
for (opts = cmd->opts; *opts; opts++)
204206
shmn_elog(DEBUG1, "%s", *opts);
205207
if (strcmp(cmd->cmd_type, "add_node") == 0)
206208
add_node(cmd);

0 commit comments

Comments
 (0)