This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# List the duplicate entries in the minipro devices.h file | |
import re | |
o = open('devices.h', 'r') | |
prog = re.compile("^\s*\.(\S+)\s*=\s*\"?(.+?)\"?\s*,\s*$") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/database.c b/database.c | |
index aa90d3e..952b4f9 100644 | |
--- a/database.c | |
+++ b/database.c | |
@@ -12,4 +12,5 @@ device_t *get_device_by_name(const char *name) { | |
if(!strcmp(name, device->name)) | |
return(device); | |
} | |
+ return NULL; | |
} |