]> granicus.if.org Git - nethack/commitdiff
core code style
authornhmall <nhmall@nethack.org>
Thu, 13 Dec 2018 06:36:36 +0000 (01:36 -0500)
committernhmall <nhmall@nethack.org>
Thu, 13 Dec 2018 06:36:36 +0000 (01:36 -0500)
src/cmd.c

index 15c099e9988f92f584d64e2d82ff24893df931da..013c9941680709a6234647a9955ac1b14f5e20f5 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -4437,7 +4437,10 @@ randomkey()
     return c;
 }
 
-void random_response(char * buf, int size)
+void
+random_response(buf, sz)
+char *buf;
+int sz;
 {
        int count = 0;
        while (1) {
@@ -4451,7 +4454,7 @@ void random_response(char * buf, int size)
                        break;
                }
 
-               if (count < size)
+               if (count < sz)
                        buf[count++] = c;
        }