Skip to content

Commit

Permalink
Coding style cleanup for NBD code to match the rest of blktap code.
Browse files Browse the repository at this point in the history
Linux coding style is used for this repository.
  • Loading branch information
andreil committed May 28, 2012
1 parent 745dce7 commit 27ecad5
Show file tree
Hide file tree
Showing 16 changed files with 937 additions and 793 deletions.
7 changes: 4 additions & 3 deletions control/tap-ctl-unpause.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
#include "tap-ctl.h"

int
tap_ctl_unpause(const int id, const int minor, const char *params, int flags, char *secondary)
tap_ctl_unpause(const int id, const int minor, const char *params, int flags,
char *secondary)
{
int err;
tapdisk_message_t message;
Expand All @@ -55,8 +56,8 @@ tap_ctl_unpause(const int id, const int minor, const char *params, int flags, ch
sizeof(message.u.params.path) - 1);
if (secondary) {
err = snprintf(message.u.params.secondary,
sizeof(message.u.params.secondary) - 1, "%s",
secondary);
sizeof(message.u.params.secondary) - 1, "%s",
secondary);
if (err >= sizeof(message.u.params.secondary)) {
EPRINTF("secondary image name too long\n");
return ENAMETOOLONG;
Expand Down
3 changes: 2 additions & 1 deletion control/tap-ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,8 @@ tap_cli_pause(int argc, char **argv)
static void
tap_cli_unpause_usage(FILE *stream)
{
fprintf(stream, "usage: unpause <-p pid> <-m minor> [-a args] [-2 secondary]\n");
fprintf(stream, "usage: unpause <-p pid> <-m minor> [-a args] "
"[-2 secondary]\n");
}

int
Expand Down
Loading

0 comments on commit 27ecad5

Please sign in to comment.