BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / commit / 11f4683b13d097219efe4887820b96d54ffee02c / grp / getgr.c

// Related

OrionLibC

Barry Using POSIX names for structs 11f4683 (2 years, 2 months ago)
diff --git a/grp/getgr.c b/grp/getgr.c
index e77d50c..0a4c4e9 100644
--- a/grp/getgr.c
+++ b/grp/getgr.c
@@ -80,16 +80,16 @@ line_to_group(char *line)
 		j++;
 	}
 
-	entry.name = entryName;
-	entry.gid = number(gidstr);
-	entry.members = entryMembers;
+	entry.gr_name = entryName;
+	entry.gr_gid = number(gidstr);
+	entry.gr_mem = entryMembers;
 
 	return &entry;
 }
 
 /* Get group file entry by name */
 Group *
-getgrname(const char *name)
+getgrnam(const char *name)
 {
 	int fd = open("/etc/group", O_RDONLY);
 	if (fd < 0)