[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/group/lib libgroup.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland sourceware org	2006-10-13 17:15:26

Modified files:
	group/lib      : libgroup.c 

Log message:
	replace spaces with tabs

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/lib/libgroup.c.diff?cvsroot=cluster&r1=1.21&r2=1.22

--- cluster/group/lib/libgroup.c	2006/10/13 16:03:48	1.21
+++ cluster/group/lib/libgroup.c	2006/10/13 17:15:26	1.22
@@ -482,28 +482,28 @@
 
 int group_get_group(int level, const char *name, group_data_t *data)
 {
-       char buf[GROUPD_MSGLEN];
-       char data_buf[sizeof(group_data_t)];
-       int fd, rv, len;
-
-       fd = connect_groupd();
-       if (fd < 0)
-               return fd;
-
-       memset(buf, 0, sizeof(buf));
-       snprintf(buf, sizeof(buf), "get_group %d %s", level, name);
-
-       rv = do_write(fd, &buf, GROUPD_MSGLEN);
-       if (rv < 0)
-               goto out;
-
-       rv = do_read(fd, &data_buf, sizeof(data_buf));
-       if (rv < 0)
-               goto out;
+	char buf[GROUPD_MSGLEN];
+	char data_buf[sizeof(group_data_t)];
+	int fd, rv, len;
+
+	fd = connect_groupd();
+	if (fd < 0)
+		 return fd;
+
+	memset(buf, 0, sizeof(buf));
+	snprintf(buf, sizeof(buf), "get_group %d %s", level, name);
+
+	rv = do_write(fd, &buf, GROUPD_MSGLEN);
+	if (rv < 0)
+		 goto out;
+
+	rv = do_read(fd, &data_buf, sizeof(data_buf));
+	if (rv < 0)
+		 goto out;
 
-       memcpy(data, data_buf, sizeof(group_data_t));
-       rv = 0;
+	memcpy(data, data_buf, sizeof(group_data_t));
+	rv = 0;
  out:
-       close(fd);
-       return rv;
+	close(fd);
+	return rv;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]