aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzblctrl.c
diff options
context:
space:
mode:
authorGravatar Damien Leone <damien.leone@fensalir.fr>2009-05-16 16:19:26 +0200
committerGravatar Damien Leone <damien.leone@fensalir.fr>2009-05-16 16:19:26 +0200
commitf70df5ad4bfe4009d97a546a97002b0552395734 (patch)
tree8cfe2df557a48da893340e2bd4075bfc78adc14b /uzblctrl.c
parent64a4f8d02c1e6900b8b46a7b3fd5bd5232e3b685 (diff)
clean traling whitespaces
Diffstat (limited to 'uzblctrl.c')
-rw-r--r--uzblctrl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/uzblctrl.c b/uzblctrl.c
index 6379606..46f3a23 100644
--- a/uzblctrl.c
+++ b/uzblctrl.c
@@ -34,15 +34,15 @@ main(int argc, char* argv[]) {
g_option_context_add_main_entries (context, entries, NULL);
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_parse (context, &argc, &argv, &error);
-
+
int s, len;
struct sockaddr_un remote;
-
+
if ((s = socket (AF_UNIX, SOCK_STREAM, 0)) == -1) {
perror ("socket");
exit (1);
}
-
+
remote.sun_family = AF_UNIX;
strcpy (remote.sun_path, (char *) sockpath);
len = strlen (remote.sun_path) + sizeof (remote.sun_family);
@@ -51,14 +51,14 @@ main(int argc, char* argv[]) {
perror ("connect");
exit (1);
}
-
+
if (send (s, command, strlen (command), 0) == -1) {
perror ("send");
exit (1);
}
-
+
close(s);
-
+
return 0;
}
/* vi: set et ts=4: */