Skip to contentSkip to conversation

osd_login: argc appears unused after defined

PATCH New [email protected] 1 participant 1 message Sep 21, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osd_login: argc appears unused after defined

From: Yongcheng Yang <[email protected]>

---

It's maybe nitpicking. But can avoid the "Shell Check Warning".

Thanks,
Yongcheng

 utils/osd_login/osd_login | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/osd_login/osd_login +1 -1
index 08cd2d2..f7f1aa3 100644
@@ -48,7 +48,7 @@ usage()
 parse_cmdline()
 {
 	argc=$#
-	if [ $# -lt 3 ]; then
+	if [ $argc -lt 3 ]; then
 		usage
 		exit 1
 	fi
Signature · 1 line
2.4.11