Gedare Bloom started a new discussion on cpukit/libcsupport/src/getgrent.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1250#note_150559

 > +  char *buffer,
 > +  size_t bufsize,
 > +  struct group **result
 > +);
 > +
 > +struct group *getgrent(void);
 > +struct group *getgrnam(const char *name);
 > +struct group *getgrgid(gid_t gid);
 > +
 > +static char *group_align_pointer(char *p)
 >  {
 > -  pthread_key_create(&grp_key, free);
 > +  uintptr_t value;
 > +
 > +  value = (uintptr_t) p;
 > +  value = (value + sizeof(char *) - 1) & ~((uintptr_t) sizeof(char *) - 1);

this should use `RTEMS_ALIGN_UP` from basedefs.h

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1250#note_150559
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to