Skip to contentSkip to conversation

Fix control-c handing inCONFIG_CMDLINE_EDITING

PATCH New Jeff Mann 3 participants 3 messages Jul 31, 2006

lore
Share & tools
lore

Jeff Mann

author
#0 lore raw

PATCH 1/1 Fix control-c handing inCONFIG_CMDLINE_EDITING

Review

Quoted 1 line
(quoted diff) +1 -0
+	return rc < 0 ? rc : len;

Use of the conditional assignment operator is generally considered bad practice because it affects readability.

#1 lore raw

PATCH 1/1 Fix control-c handing inCONFIG_CMDLINE_EDITING

Apparently not that bad for u-boot

$ grep -r "\?.*\:" * | wc -l
2432

-roger

Quoted 6 lines · --- Jeff Mann

Review

Quoted 1 line
(quoted diff) +1 -0
+	return rc < 0 ? rc : len;

Use of the conditional assignment operator is generally considered bad
practice because it affects readability.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#2 lore raw

PATCH 1/1 Fix control-c handing inCONFIG_CMDLINE_EDITING

In reply to Jeff Mann
Quoted 4 lines · In message <1628E43D99629C46988BE46087A3FBB9642FCB@ep-01.EmbeddedPlanet.local>…

Review

Quoted 1 line
(quoted diff) +1 -0
+	return rc < 0 ? rc : len;

Use of the conditional assignment operator is generally considered bad practice because it affects readability.

Who says so? Any authority?

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Question: How does one get fresh air into a Russian church?
Answer:   One clicks on an icon, and a window opens!