the TCP/IP port to look up in /etc/services. They are two separate concept
which should have separate defines.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3070
dc483132-0cff-0310-8789-
dd5450dbe970
#define KRB5_SAMPLE__
#define SAMPLE_SERVICE "sample"
+#define SAMPLE_PORT "sample"
#define SAMPLE_VERSION "KRB5_sample_protocol_v1.0"
#endif /* KRB5_SAMPLE__ */
sin.sin_port = htons(atoi(argv[2]));
} else {
/* find the port number for knetd */
- sp = getservbyname(SAMPLE_SERVICE, "tcp");
+ sp = getservbyname(SAMPLE_PORT, "tcp");
if (!sp) {
fprintf(stderr,
"unknown service %s/tcp; check /etc/services\n",
- SAMPLE_SERVICE);
+ SAMPLE_PORT);
exit(1);
}
/* copy the port number */