diff options
author | 2009-07-24 18:46:40 +0000 | |
---|---|---|
committer | 2009-07-24 18:46:40 +0000 | |
commit | 8173f7f4eae9e5c95638d09db35ec074e7dcefdb (patch) | |
tree | 9b546820370e87cf2867f535135230ce2826db16 | |
parent | wrap the kernel specific parts in an _KERNEL ifdef. (diff) | |
download | wireguard-openbsd-8173f7f4eae9e5c95638d09db35ec074e7dcefdb.tar.xz wireguard-openbsd-8173f7f4eae9e5c95638d09db35ec074e7dcefdb.zip |
cmd_find_index should return -2 on error.
-rw-r--r-- | usr.bin/tmux/cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c index c5500af81f2..15c6f0d232f 100644 --- a/usr.bin/tmux/cmd.c +++ b/usr.bin/tmux/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.8 2009/07/22 21:23:29 nicm Exp $ */ +/* $OpenBSD: cmd.c,v 1.9 2009/07/24 18:46:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -676,7 +676,7 @@ cmd_find_index(struct cmd_ctx *ctx, const char *arg, struct session **sp) */ if ((s = cmd_current_session(ctx)) == NULL) { ctx->error(ctx, "can't establish current session"); - return (-1); + return (-2); } /* A NULL argument means the current session and "no window" (-1). */ |