summaryrefslogtreecommitdiff
path: root/symbian
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-03-09 13:13:07 -0700
committerKarl Williamson <khw@cpan.org>2017-10-24 08:14:08 -0600
commit083b2a61ee6281f67b6d6a21ad5d27e6219df60f (patch)
tree19277306a3682affdd69bcc12a1e4b1c58306ca0 /symbian
parent5bad3c4f3a4515aaa622eecdf6f5a84fcaff7ed9 (diff)
downloadperl-083b2a61ee6281f67b6d6a21ad5d27e6219df60f.tar.gz
Convert strcmp into strEQ, strNE
The latter two are easier to read
Diffstat (limited to 'symbian')
-rw-r--r--symbian/symbian_stubs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/symbian/symbian_stubs.c b/symbian/symbian_stubs.c
index c997446cfd..314bd5772c 100644
--- a/symbian/symbian_stubs.c
+++ b/symbian/symbian_stubs.c
@@ -89,7 +89,7 @@ struct protoent* getprotobynumber(int number) {
struct protoent* getprotobyname(const char* name) {
int i;
for (i = 0; i < sizeof(protocols)/sizeof(struct protoent); i++)
- if (strcmp(name, protocols[i].p_name) == 0)
+ if (strEQ(name, protocols[i].p_name))
return (struct protoent*)(&(protocols[i]));
return 0;
}
@@ -97,7 +97,7 @@ struct protoent* getprotobyname(const char* name) {
struct servent* getservbyname(const char* name, const char* proto) {
int i;
for (i = 0; i < sizeof(services)/sizeof(struct servent); i++)
- if (strcmp(name, services[i].s_name) == 0)
+ if (strEQ(name, services[i].s_name))
return (struct servent*)(&(services[i]));
return 0;
}