Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0e01b2c

Browse files
author
Anton Yarkov
committed
Code cleanup.
1 parent 9758b3d commit 0e01b2c

File tree

2 files changed

+3
-3
lines changed
  • networking
    • 02 Astro-tcp-server - Simple blocked
    • 04 Astro-tcp-server - Multiplex - select

2 files changed

+3
-3
lines changed

‎networking/02 Astro-tcp-server - Simple blocked/server.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ void main()
112112

113113
printf("Received from client: %s, %d bytes\n", command, received);
114114

115-
if (received == 22)// && command[21] == '\n')
115+
if (received == 22)
116116
{
117-
// Get znak zodiak
117+
// Get zodiak
118118
char zodiak[11];
119119
for (int i = 10; i < 21; i++)
120120
{

‎networking/04 Astro-tcp-server - Multiplex - select/client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ int main(int argc, char **argv)
4040
struct hostent *hp;
4141
if ((hp = gethostbyname(argv[1])) == 0)
4242
{
43-
perror("Error of calling gethostbyname"); /* èëè strerror */
43+
perror("Error of calling gethostbyname"); /* Or use strerror */
4444
exit(1);
4545
}
4646

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /