From: dtucker Date: Fri, 7 Sep 2018 04:26:56 +0000 (+0000) Subject: Add FALLTHROUGH comments where appropriate. Patch from jjelen at redhat X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6c281f3f440e033158d5c8fcda024d7fe92e94a6;p=openbsd Add FALLTHROUGH comments where appropriate. Patch from jjelen at redhat via bz#2687. --- diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c index e83177f681b..9f2c0a6b285 100644 --- a/usr.bin/ssh/sftp.c +++ b/usr.bin/ssh/sftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.c,v 1.185 2018/04/26 14:47:03 bluhm Exp $ */ +/* $OpenBSD: sftp.c,v 1.186 2018/09/07 04:26:56 dtucker Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller * @@ -1415,6 +1415,7 @@ parse_args(const char **cpp, int *ignore_errors, int *aflag, case I_LUMASK: case I_CHMOD: base = 8; + /* FALLTHROUGH */ case I_CHOWN: case I_CHGRP: if ((optidx = parse_no_flags(cmd, argv, argc)) == -1) @@ -1513,6 +1514,7 @@ parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd, break; case I_SYMLINK: sflag = 1; + /* FALLTHROUGH */ case I_LINK: if (!sflag) path1 = make_absolute(path1, *pwd);