Actions
Bug #4356
opennl7c has duplicate strdup()
Start date:
2013-11-25
Due date:
% Done:
60%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:
Description
The nl7c kernel module has its own strdup(), which is redundant.
289/*
290 * strdup(), yet another strdup() in the kernel.
291 */
292
293static char *
294strdup(char *s)
295{
296 int len = strlen(s) + 1;
297 char *ret = kmem_alloc(len, KM_SLEEP);
298
299 bcopy(s, ret, len);
300
301 return (ret);
302}
303
Updated by Bart Coddens over 9 years ago
- Status changed from New to In Progress
- Assignee set to Bart Coddens
- % Done changed from 0 to 60
Working on this
Actions