Remove commented cruft from src/sock.c
This commit is contained in:
		
							parent
							
								
									f835f19e53
								
							
						
					
					
						commit
						484e68e417
					
				
					 1 changed files with 0 additions and 10 deletions
				
			
		
							
								
								
									
										10
									
								
								src/sock.c
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/sock.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -14,7 +14,6 @@
 | 
			
		|||
 | 
			
		||||
static int bind_pty(patty_ax25_sock *sock) {
 | 
			
		||||
    struct termios t;
 | 
			
		||||
    int pty;
 | 
			
		||||
 | 
			
		||||
    if ((sock->fd = open("/dev/ptmx", O_RDWR)) < 0) {
 | 
			
		||||
        goto error_open;
 | 
			
		||||
| 
						 | 
				
			
			@ -32,10 +31,6 @@ static int bind_pty(patty_ax25_sock *sock) {
 | 
			
		|||
        goto error_ptsname_r;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /*if ((pty = open(sock->path, O_RDWR)) < 0) {
 | 
			
		||||
        goto error_open_pty;
 | 
			
		||||
    }*/
 | 
			
		||||
 | 
			
		||||
    if (tcgetattr(sock->fd, &t) < 0) {
 | 
			
		||||
        goto error_tcgetattr;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -46,17 +41,12 @@ static int bind_pty(patty_ax25_sock *sock) {
 | 
			
		|||
        goto error_tcsetattr;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    //close(pty);
 | 
			
		||||
 | 
			
		||||
    sock->opts |= PATTY_AX25_SOCK_PTY;
 | 
			
		||||
 | 
			
		||||
    return 0;
 | 
			
		||||
 | 
			
		||||
error_tcsetattr:
 | 
			
		||||
error_tcgetattr:
 | 
			
		||||
    //close(pty);
 | 
			
		||||
 | 
			
		||||
error_open_pty:
 | 
			
		||||
error_ptsname_r:
 | 
			
		||||
error_unlockpt:
 | 
			
		||||
error_grantpt:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue