mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-27 13:15:17 +02:00
Sync OpenBSD patchset 581:
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: cmd-generic.c,v 1.37 2009-11-28 14:50:36 tcunha Exp $ */
|
||||
/* $Id: cmd-generic.c,v 1.38 2009-12-04 22:14:47 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@@ -141,7 +141,7 @@ cmd_fill_argument(int flags, char **arg, char **arg2, int argc, char **argv)
|
||||
if (argc == 2)
|
||||
*arg2 = xstrdup(argv[1]);
|
||||
return (0);
|
||||
}
|
||||
}
|
||||
|
||||
if (argc != 0)
|
||||
return (-1);
|
||||
@@ -225,9 +225,9 @@ cmd_target_print(struct cmd *self, char *buf, size_t len)
|
||||
off += cmd_print_flags(buf, len, off, data->chflags);
|
||||
if (off < len && data->target != NULL)
|
||||
off += cmd_prarg(buf + off, len - off, " -t ", data->target);
|
||||
if (off < len && data->arg != NULL)
|
||||
if (off < len && data->arg != NULL)
|
||||
off += cmd_prarg(buf + off, len - off, " ", data->arg);
|
||||
if (off < len && data->arg2 != NULL)
|
||||
if (off < len && data->arg2 != NULL)
|
||||
off += cmd_prarg(buf + off, len - off, " ", data->arg2);
|
||||
return (off);
|
||||
}
|
||||
@@ -317,9 +317,9 @@ cmd_srcdst_print(struct cmd *self, char *buf, size_t len)
|
||||
off += xsnprintf(buf + off, len - off, " -s %s", data->src);
|
||||
if (off < len && data->dst != NULL)
|
||||
off += xsnprintf(buf + off, len - off, " -t %s", data->dst);
|
||||
if (off < len && data->arg != NULL)
|
||||
if (off < len && data->arg != NULL)
|
||||
off += cmd_prarg(buf + off, len - off, " ", data->arg);
|
||||
if (off < len && data->arg2 != NULL)
|
||||
if (off < len && data->arg2 != NULL)
|
||||
off += cmd_prarg(buf + off, len - off, " ", data->arg2);
|
||||
return (off);
|
||||
}
|
||||
@@ -415,9 +415,9 @@ cmd_buffer_print(struct cmd *self, char *buf, size_t len)
|
||||
off += xsnprintf(buf + off, len - off, " -b %d", data->buffer);
|
||||
if (off < len && data->target != NULL)
|
||||
off += cmd_prarg(buf + off, len - off, " -t ", data->target);
|
||||
if (off < len && data->arg != NULL)
|
||||
if (off < len && data->arg != NULL)
|
||||
off += cmd_prarg(buf + off, len - off, " ", data->arg);
|
||||
if (off < len && data->arg2 != NULL)
|
||||
if (off < len && data->arg2 != NULL)
|
||||
off += cmd_prarg(buf + off, len - off, " ", data->arg2);
|
||||
return (off);
|
||||
}
|
||||
|
Reference in New Issue
Block a user