buffer: reduce indentation in read_buffer()
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit ffa3a56ab8)
			
			
This commit is contained in:
		
							parent
							
								
									3cb25a7857
								
							
						
					
					
						commit
						e16844bd3b
					
				
							
								
								
									
										32
									
								
								src/buffer.c
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								src/buffer.c
									
									
									
									
									
								
							@ -236,29 +236,27 @@ ssize_t read_buffer (int fd, struct buffer_s * buffptr)
 | 
			
		||||
                                     "readbuff: add_to_buffer() error.");
 | 
			
		||||
                        bytesin = -1;
 | 
			
		||||
                }
 | 
			
		||||
        } else if (bytesin == 0) {
 | 
			
		||||
                /* connection was closed by client */
 | 
			
		||||
                bytesin = -1;
 | 
			
		||||
        } else {
 | 
			
		||||
                if (bytesin == 0) {
 | 
			
		||||
                        /* connection was closed by client */
 | 
			
		||||
                        bytesin = -1;
 | 
			
		||||
                } else {
 | 
			
		||||
                        switch (errno) {
 | 
			
		||||
                switch (errno) {
 | 
			
		||||
#ifdef EWOULDBLOCK
 | 
			
		||||
                        case EWOULDBLOCK:
 | 
			
		||||
                case EWOULDBLOCK:
 | 
			
		||||
#else
 | 
			
		||||
#  ifdef EAGAIN
 | 
			
		||||
                        case EAGAIN:
 | 
			
		||||
                case EAGAIN:
 | 
			
		||||
#  endif
 | 
			
		||||
#endif
 | 
			
		||||
                        case EINTR:
 | 
			
		||||
                                bytesin = 0;
 | 
			
		||||
                                break;
 | 
			
		||||
                        default:
 | 
			
		||||
                                log_message (LOG_ERR,
 | 
			
		||||
                                             "readbuff: recv() error \"%s\" on file descriptor %d",
 | 
			
		||||
                                             strerror (errno), fd);
 | 
			
		||||
                                bytesin = -1;
 | 
			
		||||
                                break;
 | 
			
		||||
                        }
 | 
			
		||||
                case EINTR:
 | 
			
		||||
                        bytesin = 0;
 | 
			
		||||
                        break;
 | 
			
		||||
                default:
 | 
			
		||||
                        log_message (LOG_ERR,
 | 
			
		||||
                                     "readbuff: recv() error \"%s\" on file descriptor %d",
 | 
			
		||||
                                     strerror (errno), fd);
 | 
			
		||||
                        bytesin = -1;
 | 
			
		||||
                        break;
 | 
			
		||||
                }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user