diff options
| author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-03-16 02:28:16 -0300 |
|---|---|---|
| committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-04-24 19:40:11 -0700 |
| commit | bf634290f7bdf1f5b922f4c28b333a739057f2f0 (patch) | |
| tree | 5f3c743ac4db8e15a29a33b7fdcc19a63bfd9758 | |
| parent | 7f0623807366b1bc6c0be2e065220be94b669ea7 (diff) | |
Compile warning fixes.
Ansify a function with K&R style definition.
Obey gcc in warning suggest parentheses around assignment used as truth value.
Remove some unused variables.
Remaining warning is about xf86AddModuleInfo being deprecated.
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
| -rw-r--r-- | src/mouse.c | 6 | ||||
| -rw-r--r-- | src/pnp.c | 5 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/mouse.c b/src/mouse.c index ce29f32..4f9a1b4 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -802,8 +802,8 @@ MouseHWOptions(InputInfoPtr pInfo) pMse->resolution); } - if (mPriv->sensitivity - = xf86SetRealOption(pInfo->options, "Sensitivity", 1.0)) { + if ((mPriv->sensitivity + = xf86SetRealOption(pInfo->options, "Sensitivity", 1.0))) { xf86Msg(X_CONFIG, "%s: Sensitivity: %g\n", pInfo->name, mPriv->sensitivity); } @@ -1860,8 +1860,6 @@ MouseConvert(InputInfoPtr pInfo, int first, int num, int v0, int v1, int v2, static void FlushButtons(MouseDevPtr pMse) { - int i, blocked; - pMse->lastButtons = 0; pMse->lastMappedButtons = 0; } @@ -551,10 +551,7 @@ pnpproto(pnpid_t *id) /* name/val mapping */ static symtab_t * -gettoken(tab, s, len) -symtab_t *tab; -char *s; -int len; +gettoken(symtab_t *tab, char *s, int len) { int i; |
