Revision 511d2b14 slirp/misc.c

b/slirp/misc.c
70 70
 * Get our IP address and put it in our_addr
71 71
 */
72 72
void
73
getouraddr()
73
getouraddr(void)
74 74
{
75 75
	char buff[256];
76 76
	struct hostent *he = NULL;
......
89 89
};
90 90

  
91 91
inline void
92
insque(a, b)
93
	void *a, *b;
92
insque(void *a, void *b)
94 93
{
95 94
	register struct quehead *element = (struct quehead *) a;
96 95
	register struct quehead *head = (struct quehead *) b;
......
102 101
}
103 102

  
104 103
inline void
105
remque(a)
106
     void *a;
104
remque(void *a)
107 105
{
108 106
  register struct quehead *element = (struct quehead *) a;
109 107
  ((struct quehead *)(element->qh_link))->qh_rlink = element->qh_rlink;
......
116 114

  
117 115

  
118 116
int
119
add_exec(ex_ptr, do_pty, exec, addr, port)
120
	struct ex_list **ex_ptr;
121
	int do_pty;
122
	char *exec;
123
	int addr;
124
	int port;
117
add_exec(struct ex_list **ex_ptr, int do_pty, char *exec, int addr, int port)
125 118
{
126 119
	struct ex_list *tmp_ptr;
127 120

  
......
363 356
			argv[i++] = strdup(curarg);
364 357
		   } while (c);
365 358

  
366
		argv[i] = 0;
359
                argv[i] = NULL;
367 360
		execvp(argv[0], (char **)argv);
368 361

  
369 362
		/* Ooops, failed, let's tell the user why */
......
402 395
		fd_nonblock(so->s);
403 396

  
404 397
		/* Append the telnet options now */
405
		if (so->so_m != 0 && do_pty == 1)  {
398
                if (so->so_m != NULL && do_pty == 1)  {
406 399
			sbappend(so, so->so_m);
407
			so->so_m = 0;
400
                        so->so_m = NULL;
408 401
		}
409 402

  
410 403
		return 1;
......
764 757
#endif
765 758

  
766 759
void
767
u_sleep(usec)
768
	int usec;
760
u_sleep(int usec)
769 761
{
770 762
	struct timeval t;
771 763
	fd_set fdset;
......
783 775
 */
784 776

  
785 777
void
786
fd_nonblock(fd)
787
	int fd;
778
fd_nonblock(int fd)
788 779
{
789 780
#ifdef FIONBIO
790 781
	int opt = 1;
......
800 791
}
801 792

  
802 793
void
803
fd_block(fd)
804
	int fd;
794
fd_block(int fd)
805 795
{
806 796
#ifdef FIONBIO
807 797
	int opt = 0;

Also available in: Unified diff