Commit Graph
4 Commits
Author SHA1 Message Date
Mieczyslaw NalewajandFelix Fietkau a22d59e4ad tools: fix allocation check and missing memory freeing
Fixed allocation checking and freeing buffer memory
inside mt76_eeprom_changes() function.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
2025-01-22 12:42:34 +01:00
Hauke MehrtensandFelix Fietkau 021ded363d tools: Fix compile error with glibc
This fixes the following compile error when compiling against recent
glibc:
------------
/tools/eeprom.c:223:9: error: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Werror=unused-result]
  223 |         fread(buf, 1, EEPROM_PART_SIZE, f);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
------------

Signed-off-by: Hauke Mehrtens <[email protected]>
2023-03-02 22:23:43 +01:00
Hauke MehrtensandFelix Fietkau 4c8a09cc45 tools: Set mode for new file /tmp/mt76-test-%s
Set the file system mode for the newly created file /tmp/mt76-test-%s,
this is mandatory according to the man page and fixes a compile error
with glibc.

Signed-off-by: Hauke Mehrtens <[email protected]>
2021-01-14 14:04:18 +01:00
Felix Fietkau 3ea5da1639 add utility for using testmode support
Signed-off-by: Felix Fietkau <[email protected]>
2020-06-22 21:32:26 +02:00