aboutsummaryrefslogtreecommitdiff
path: root/src/spm.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-03-02 16:19:08 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-03-02 16:19:08 -0500
commitd49db7d0981861d979765647cce3c6468a012301 (patch)
treef6d8c12a34978292337954daa85acd5031b4c8ec /src/spm.c
parente30c8ffa406e377432bae6a9b7fbd41b046da201 (diff)
downloadspmc-d49db7d0981861d979765647cce3c6468a012301.tar.gz
Refactor startswith() and endswidth() usage
Diffstat (limited to 'src/spm.c')
-rw-r--r--src/spm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spm.c b/src/spm.c
index 3e843c2..099b3f8 100644
--- a/src/spm.c
+++ b/src/spm.c
@@ -137,7 +137,7 @@ int main(int argc, char *argv[], char *arge[]) {
for (int p = 0; i < argc; p++) {
i++;
char *next = argv[i];
- if (next == NULL || (startswith(next, "-") == 0 || startswith(next, "--") == 0)) {
+ if (next == NULL || (startswith(next, "-") || startswith(next, "--"))) {
i--;
break;
}
@@ -154,7 +154,7 @@ int main(int argc, char *argv[], char *arge[]) {
for (int p = 0; i < argc; p++) {
i++;
char *next = argv[i];
- if (next == NULL || (startswith(next, "-") == 0 || startswith(next, "--") == 0)) {
+ if (next == NULL || (startswith(next, "-") || startswith(next, "--"))) {
i--;
break;
}