summaryrefslogtreecommitdiff
path: root/linux/ioctlsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/ioctlsort.c')
-rw-r--r--linux/ioctlsort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/ioctlsort.c b/linux/ioctlsort.c
index 6ee6c07..9b18d29 100644
--- a/linux/ioctlsort.c
+++ b/linux/ioctlsort.c
@@ -28,7 +28,7 @@ int compare(const void* a, const void* b) {
unsigned long code2 = ((struct ioctlent *) b)->code;
const char *name1 = ((struct ioctlent *) a)->name;
const char *name2 = ((struct ioctlent *) b)->name;
- return (code1 > code2) ? 1 : (code1 < code2) ? -1 : strcmp (name1, name2);
+ return (code1 > code2) ? 1 : (code1 < code2) ? -1 : strcmp(name1, name2);
}
@@ -41,10 +41,10 @@ int main(int argc, char** argv) {
(_IOC_TYPEMASK << _IOC_TYPESHIFT);
qsort(ioctls, nioctls, sizeof(ioctls[0]), compare);
- puts ("\t/* Generated by ioctlsort */");
+ puts("\t/* Generated by ioctlsort */");
for (i = 0; i < nioctls; i++)
if (i == 0 || ioctls[i].code != ioctls[i-1].code ||
- strcmp (ioctls[i].name, ioctls[i-1].name))
+ strcmp(ioctls[i].name, ioctls[i-1].name))
printf("\t{\"%s\",\t\"%s\",\t%#06lx},\n",
ioctls[i].header, ioctls[i].name, ioctls[i].code);