| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Somewhat hard to read and the code base already has many overlong
lines.
Found with below spatch file and some manual editing in ax25/access.c
to restore a comment lost by spatch.
@parens@
expression E, F, G;
binary operator X;
statement S;
@@
- if ((E = F) X G)
+ E = F;
+ if (E X G)
S
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
malloc returns a void pointer so no cast is necessary when
assigning to a pointer type.
Found with below coccinelle script:
@malloccast@
type T;
@@
- (T *)
malloc(...)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
beacon.c: In function ‘main’:
beacon.c:146:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (addr != NULL) free(addr); addr = NULL;
^~
beacon.c:146:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
if (addr != NULL) free(addr); addr = NULL;
^~~~
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
beacon.c: In function ‘main’:
beacon.c:128:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (addr != NULL) free(addr); addr = NULL;
^~
beacon.c:128:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
if (addr != NULL) free(addr); addr = NULL;
^~~~
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
| |
This uses a setlocalversion script derived from the kernel's
scripts/setlocalversion.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
| |
Idea by Folkert van Heusden <mail@vanheusden.com>.
Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
|
|
|
|
|
|
| |
patch submitted by Folkert van Heusden <mail@vanheusden.com>.
Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
|
|
|
|
|
|
|
| |
Indentation by tabs only. Move case labels in switches are on the same
level as the switch keyword.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
| |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
| |
Glibc as old as 2.2 provides working headers under the right name and
if not libax25 would install headers under the right name so this has
become redundant and ugly.
|
|
|
|
| |
char addr[20] was static and strcpy(addr,.argv[n]) of variable length..
|
| |
|
|
|