Skip to content

Commit

Permalink
Fix the dpl_backend_set function
Browse files Browse the repository at this point in the history
Mistake in the typing interpretation for the previous commit led to a compiler
error. This is now fixed, as well as a simple typo.
  • Loading branch information
David Pineau committed Nov 16, 2015
1 parent 2fe3b3e commit e4132c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libdroplet/src/droplet.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,20 +477,20 @@ dpl_backend_set(dpl_ctx_t *ctx, const char *name)
int ret = 0;

if (!strcmp(name, "s3"))
ctx->backend = dpl_backend_s3;
ctx->backend = &dpl_backend_s3;
else if (!strcmp(name, "cdmi"))
{
ctx->preserve_root_path = 1;
ctx->backend = dpl_backend_cmi;
ctx->backend = &dpl_backend_cdmi;
}
else if (!strcmp(name, "swift"))
ctx->backend = dpl_backend_swift;
ctx->backend = &dpl_backend_swift;
else if (!strcmp(name, "srws"))
ctx->backend = dpl_backend_srws;
ctx->backend = &dpl_backend_srws;
else if (!strcmp(name, "sproxyd"))
ctx->backend = dpl_backend_sproxyd;
ctx->backend = &dpl_backend_sproxyd;
else if (!strcmp(name, "posix"))
ctx->backend = dpl_backend_posix;
ctx->backend = &dpl_backend_posix;
else
ret = -1;

Expand Down

0 comments on commit e4132c5

Please sign in to comment.