aboutsummaryrefslogtreecommitdiffstats
path: root/src/cm.c
diff options
context:
space:
mode:
authorJuanma Barranquero2010-07-05 12:36:06 +0200
committerJuanma Barranquero2010-07-05 12:36:06 +0200
commitd3da34e0dab1404e80dba5413b3c449a6ea8fa0c (patch)
treec24d736f75b63d4abb1b8ddd49b088632ccd8aee /src/cm.c
parent00be444c737e95c7455aa1808d9da75d4affd51f (diff)
downloademacs-d3da34e0dab1404e80dba5413b3c449a6ea8fa0c.tar.gz
emacs-d3da34e0dab1404e80dba5413b3c449a6ea8fa0c.zip
Convert most remaining function definitions to standard C.
* buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c, * xdisp.c: Convert function definitions to standard C. * cm.c (cmputc): Arg C is now int, not char. * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
Diffstat (limited to 'src/cm.c')
-rw-r--r--src/cm.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cm.c b/src/cm.c
index d083c8a1be9..c2a68ed7015 100644
--- a/src/cm.c
+++ b/src/cm.c
@@ -45,8 +45,7 @@ int cost; /* sums up costs */
45 45
46/* ARGSUSED */ 46/* ARGSUSED */
47int 47int
48evalcost (c) 48evalcost (int c)
49 int c;
50{ 49{
51 cost++; 50 cost++;
52 return c; 51 return c;
@@ -56,8 +55,7 @@ evalcost (c)
56struct tty_display_info *current_tty; 55struct tty_display_info *current_tty;
57 56
58int 57int
59cmputc (c) 58cmputc (int c)
60 char c;
61{ 59{
62 if (current_tty->termscript) 60 if (current_tty->termscript)
63 putc (c & 0177, current_tty->termscript); 61 putc (c & 0177, current_tty->termscript);
@@ -326,9 +324,7 @@ losecursor ()
326#define USECR 3 324#define USECR 3
327 325
328void 326void
329cmgoto (tty, row, col) 327cmgoto (struct tty_display_info *tty, int row, int col)
330 struct tty_display_info *tty;
331 int row, col;
332{ 328{
333 int homecost, 329 int homecost,
334 crcost, 330 crcost,