diff options
author | 2015-11-12 19:42:44 -0500 | |
---|---|---|
committer | 2015-11-12 19:43:03 -0500 | |
commit | c43ef2aedd0b2be3236e3e9feced447b956e496c (patch) | |
tree | 777c9a6cfff8d70e7a2ac395e942162522555ee8 /sway | |
parent | Further refinement of wayland client support (diff) | |
download | sway-c43ef2aedd0b2be3236e3e9feced447b956e496c.tar.gz sway-c43ef2aedd0b2be3236e3e9feced447b956e496c.tar.zst sway-c43ef2aedd0b2be3236e3e9feced447b956e496c.zip |
We don't need to implement strdup
After defining _GNU_SOURCE
Diffstat (limited to 'sway')
-rw-r--r-- | sway/stringop.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/stringop.c b/sway/stringop.c index 31a036c3..8d6cac2f 100644 --- a/sway/stringop.c +++ b/sway/stringop.c | |||
@@ -362,12 +362,3 @@ char *argsep(char **stringp, const char *delim) { | |||
362 | found: | 362 | found: |
363 | return start; | 363 | return start; |
364 | } | 364 | } |
365 | |||
366 | char *strdup(const char *str) { | ||
367 | char *dup = malloc(strlen(str) + 1); | ||
368 | if (dup) { | ||
369 | strcpy(dup, str); | ||
370 | } | ||
371 | return dup; | ||
372 | } | ||
373 | |||