Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-10-16 | tree-wide: use mfree more | Zbigniew Jędrzejewski-Szmek | |
2016-06-15 | tree-wide: htonl() is weird, let's use htobe32() instead (#3538) | Lennart Poettering | |
Super-important change, yeah! | |||
2016-04-13 | tree-wide: remove useless NULLs from strjoina | Zbigniew Jędrzejewski-Szmek | |
The coccinelle patch didn't work in some places, I have no idea why. | |||
2016-01-12 | tree-wide: use xsprintf() where applicable | Daniel Mack | |
Also add a coccinelle receipt to help with such transitions. | |||
2015-11-09 | coccinelle: additional errno.cocci hunk | Michal Schmidt | |
rewrites: log_error_errno(errno, ...); return -errno; into: return log_error_errno(errno, ...); | |||
2015-11-09 | coccinelle: errno.cocci improvements | Michal Schmidt | |
Apply to all log_*_errno loglevels. | |||
2015-09-30 | Add Coccinelle patch for strempty() usage | Daniel Mack | |
2015-09-22 | util: add safe_closedir() similar to safe_fclose() | Lennart Poettering | |
2015-09-09 | tree-wide: take benefit of the fact that hashmap_free() returns NULL | Lennart Poettering | |
And set_free() too. Another Coccinelle patch. | |||
2015-09-09 | tree-wide: make use of the fact that strv_free() returns NULL | Lennart Poettering | |
Another Coccinelle patch. | |||
2015-09-09 | Merge pull request #1218 from poettering/safe-fclose | Daniel Mack | |
util: introduce safe_fclose() and port everything over to it | |||
2015-09-09 | util: introduce safe_fclose() and port everything over to it | Lennart Poettering | |
Adds a coccinelle script to port things over automatically. | |||
2015-09-09 | tree-wide: replace while(1) by for(;;) everywhere | Lennart Poettering | |
Another Coccinelle script. | |||
2015-09-09 | tree-wide: update empty-if coccinelle script to cover empty-while and more | Lennart Poettering | |
Let's also clean up single-line while and for blocks. | |||
2015-09-09 | tree-wide: make use of log_error_errno() return value in more cases | Lennart Poettering | |
The previous coccinelle semantic patch that improved usage of log_error_errno()'s return value, only looked for log_error_errno() invocations with a single parameter after the error parameter. Update the patch to handle arbitrary numbers of additional arguments. | |||
2015-09-09 | tree-wide: drop {} from one-line if blocks | Lennart Poettering | |
Patch via coccinelle. | |||
2015-09-09 | tree-wide: make use of log_error_errno() return value | Lennart Poettering | |
Turns this: r = -errno; log_error_errno(errno, "foo"); into this: r = log_error_errno(errno, "foo"); and this: r = log_error_errno(errno, "foo"); return r; into this: return log_error_errno(errno, "foo"); | |||
2015-09-09 | tree-wide: don't do assignments within if checks | Lennart Poettering | |
Turn this: if ((r = foo()) < 0) { ... into this: r = foo(); if (r < 0) { ... | |||
2015-09-09 | tree-wide: drop redundant if checks before safe_close() | Lennart Poettering | |
Replace this: if (fd >= 0) safe_close(fd); by this: safe_close(fd); | |||
2015-09-09 | tree-wide: make more code use safe_close() | Lennart Poettering | |
Replace this: close(fd); fd = -1; write this: fd = safe_close(fd); | |||
2015-09-09 | tree-wide: use coccinelle to patch a lot of code to use mfree() | Lennart Poettering | |
This replaces this: free(p); p = NULL; by this: p = mfree(p); Change generated using coccinelle. Semantic patch is added to the sources. |