Checked rename, error messages without ending dot.
authorviric@llimona
Fri, 14 Sep 2007 21:08:13 +0200
changeset 4 b5b369483ec0
parent 3 909bca647298
child 5 5ed1654fe407
Checked rename, error messages without ending dot.
Makefile
usocket.c
--- a/Makefile	Fri Sep 14 21:06:48 2007 +0200
+++ b/Makefile	Fri Sep 14 21:08:13 2007 +0200
@@ -1,3 +1,4 @@
 CFLAGS=-g
 
 stdinmix: main.o usocket.o error.o
+	$(CC) -o $@ $^
--- a/usocket.c	Fri Sep 14 21:06:48 2007 +0200
+++ b/usocket.c	Fri Sep 14 21:08:13 2007 +0200
@@ -31,18 +31,18 @@
 
     ls = socket(AF_UNIX, SOCK_STREAM, 0);
     if (ls == -1)
-        error("Cannot create the unix listen socket in the server.");
+        error("Cannot create the unix listen socket in the server");
 
     addr.sun_family = AF_UNIX;
     strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path));
 
     res = bind(ls, (struct sockaddr *) & addr, sizeof(addr));
     if (res == -1)
-        error("Error binding.");
+        error("Error binding");
 
     res = listen(ls, 10);
     if (res == -1)
-        error("Error listening.");
+        error("Error listening");
 
     return ls;
 }
@@ -64,14 +64,14 @@
 
     cs = socket(AF_UNIX, SOCK_STREAM, 0);
     if (cs == -1)
-        error("Cannot create the unix connect socket in the client.");
+        error("Cannot create the unix connect socket in the client");
 
     addr.sun_family = AF_UNIX;
     strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path));
 
     res = connect(cs, (struct sockaddr *) &addr, sizeof(addr));
     if (res == -1)
-        error("Cannot connect.");
+        error("Cannot connect");
     return cs;
 }