Index: control.c
--- control.c.orig
+++ control.c
@@ -279,8 +279,8 @@ control_dispatch_imsg(int fd, int event, void *bula)
 	struct imsg		 imsg;
 	struct player_mode	 mode;
 	struct player_seek	 seek;
-	ssize_t		 	 n, off;
-	int			 type, all;
+	ssize_t		 	 off;
+	int			 n, type, all;
 
 	if ((c = control_connbyfd(fd)) == NULL) {
 		log_warnx("%s: fd %d: not found", __func__, fd);
@@ -304,7 +304,7 @@ control_dispatch_imsg(int fd, int event, void *bula)
 	}
 
 	for (;;) {
-		if ((n = imsg_get(imsgbuf, &imsg)) == -1) {
+		if ((n = imsgbuf_get(imsgbuf, &imsg)) == -1) {
 			control_close(fd);
 			return;
 		}
