summaryrefslogtreecommitdiffstats
path: root/linux/IOPriorityPanel.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-1/+2
|
* Panel_new: reorder argumentsChristian Göttsche2021-01-041-1/+1
| | | | Reorder owner and type so they match the order of Panel_init
* IOPriorityPanel: drop unnecessary buffer size decrementChristian Göttsche2020-11-261-1/+1
| | | | xSnprintf guarantees null-termination within the passed size.
* Wrap inline structure definitionsBenny Baumann2020-11-021-3/+4
|
* Embracing branchesBenny Baumann2020-11-021-3/+11
|
* Spacing around operatorsBenny Baumann2020-11-021-1/+1
|
* Make all required includes explicitBenny Baumann2020-10-181-0/+6
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-1/+1
|
* Move xAsprintf, xSnprintf and xStrdup to StringUtils.hBenny Baumann2020-10-161-0/+2
|
* Handle Panel_getSelected() returning NULLChristian Göttsche2020-10-061-1/+2
| | | | | | | | | | | | | | | | | | | | | Found by compiling with LTO: ColumnsPanel.c: In function ‘ColumnsPanel_eventHandler’: ColumnsPanel.c:46:59: error: potential null pointer dereference [-Werror=null-dereference] 46 | ((ListItem*)Panel_getSelected(super))->moving = this->moving; | ^ AvailableColumnsPanel.c: In function ‘AvailableColumnsPanel_eventHandler’: AvailableColumnsPanel.c:31:8: error: potential null pointer dereference [-Werror=null-dereference] 31 | int key = ((ListItem*) Panel_getSelected(super))->key; | ^ AvailableMetersPanel.c: In function ‘AvailableMetersPanel_eventHandler’: AvailableMetersPanel.c:40:24: error: potential null pointer dereference [-Werror=null-dereference] 40 | int param = selected->key & 0xff; | ^ linux/IOPriorityPanel.c: In function ‘IOPriorityPanel_getIOPriority’: linux/IOPriorityPanel.c:37:11: error: potential null pointer dereference [-Werror=null-dereference] 37 | return (IOPriority) ( ((ListItem*) Panel_getSelected(this))->key ); | ^
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Axe automated header generation.Zev Weiss2020-09-031-5/+0
| | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
* Remove trailing whitespacesChristian Göttsche2020-08-211-1/+0
|
* Security review: check results of snprintf.Hisham Muhammad2017-07-271-1/+1
| | | | | Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does.
* Mark some things as constRichard2017-07-221-1/+1
| | | | | | | Several string pointer arrays pointed to const strings but were not const themselves. A few various structures and arrays were also marked const.
* Simplify constructors.Hisham Muhammad2015-03-231-6/+1
|
* Move FunctionBar inside PanelHisham Muhammad2015-03-231-1/+6
|
* Files moved and added for supporting separate platforms.Hisham Muhammad2014-11-241-0/+44

© 2014-2024 Faster IT GmbH | imprint | privacy policy