Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(187)

Issue 123330043: cmd/dist: Reuse streq whenever possible. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by tfarina1
Modified:
10 years, 9 months ago
Reviewers:
iant
CC:
iant, golang-codereviews
Visibility:
Public.

Description

cmd/dist: Reuse streq whenever possible. Basically this cleanup replaces all the usage usages of strcmp() == 0, found by the following command line: $ grep -R strcmp cmd/dist | grep "0"

Patch Set 1 #

Patch Set 2 : diff -r 6316af2a3b922fa9515e0ddd6edfa04922abef00 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -13 lines) Patch
M src/cmd/dist/plan9.c View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/cmd/dist/unix.c View 1 6 chunks +8 lines, -8 lines 0 comments Download
M src/cmd/dist/windows.c View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3
tfarina1
trivial cleanup. Is that OK? Tested only on Linux. Thanks for the patience.
10 years, 9 months ago (2014-08-13 03:06:50 UTC) #1
iant
LGTM Thanks.
10 years, 9 months ago (2014-08-13 13:42:26 UTC) #2
iant
10 years, 9 months ago (2014-08-13 13:47:34 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=7e5e03f84135 ***

cmd/dist: Reuse streq whenever possible.

Basically this cleanup replaces all the usage usages of strcmp() == 0,
found by the following command line:

$ grep -R strcmp cmd/dist | grep "0"

LGTM=iant
R=iant
CC=golang-codereviews
https://codereview.appspot.com/123330043

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b