Lines Matching refs:sl
78 StringList *sl, ***svc; in main() local
128 svc = parseservices(fname, sl = sl_init()); in main()
155 (addfn)(s, port, getprotostr(sl, proto), &cnt, warndup); in main()
162 sl_free(sl, 1); in main()
174 parseservices(const char *fname, StringList *sl) in parseservices() argument
237 pindex = getprotoindex(sl, proto); in parseservices()
296 getprotoindex(StringList *sl, const char *str) in getprotoindex() argument
300 for (i= 0; i < sl->sl_cur; i++) in getprotoindex()
301 if (strcmp(sl->sl_str[i], str) == 0) in getprotoindex()
307 (void)sl_add(sl, estrdup(str)); in getprotoindex()
312 getprotostr(StringList *sl, size_t i) in getprotostr() argument
314 assert(i < sl->sl_cur); in getprotostr()
315 return sl->sl_str[i]; in getprotostr()