Split out code to parse host:port into a utility function.
This commit is contained in:
@@ -207,6 +207,10 @@ __dso_public int sudo_parse_gids_v1(const char *gidstr, const gid_t *basegid, GE
|
||||
__dso_public int sudo_getgrouplist2_v1(const char *name, gid_t basegid, GETGROUPS_T **groupsp, int *ngroupsp);
|
||||
#define sudo_getgrouplist2(_a, _b, _c, _d) sudo_getgrouplist2_v1((_a), (_b), (_c), (_d))
|
||||
|
||||
/* host_port.c */
|
||||
__dso_public bool sudo_parse_host_port_v1(char *str, char **hostp, char **portp, char *defport);
|
||||
#define sudo_parse_host_port(_a, _b, _c, _d) sudo_parse_host_port_v1((_a), (_b), (_c), (_d))
|
||||
|
||||
/* key_val.c */
|
||||
__dso_public char *sudo_new_key_val_v1(const char *key, const char *value);
|
||||
#define sudo_new_key_val(_a, _b) sudo_new_key_val_v1((_a), (_b))
|
||||
|
Reference in New Issue
Block a user