mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-10-31 06:46:40 +08:00 
			
		
		
		
	Update sockets_translate.cpp
Align the error case with it's index in the Errno enum
This commit is contained in:
		
							parent
							
								
									c0775e74ec
								
							
						
					
					
						commit
						2cc5c517cf
					
				| @ -15,8 +15,6 @@ Errno Translate(Network::Errno value) { | |||||||
|     switch (value) { |     switch (value) { | ||||||
|     case Network::Errno::SUCCESS: |     case Network::Errno::SUCCESS: | ||||||
|         return Errno::SUCCESS; |         return Errno::SUCCESS; | ||||||
|     case Network::Errno::CONNREFUSED: |  | ||||||
|         return Errno::CONNREFUSED; |  | ||||||
|     case Network::Errno::BADF: |     case Network::Errno::BADF: | ||||||
|         return Errno::BADF; |         return Errno::BADF; | ||||||
|     case Network::Errno::AGAIN: |     case Network::Errno::AGAIN: | ||||||
| @ -27,6 +25,8 @@ Errno Translate(Network::Errno value) { | |||||||
|         return Errno::MFILE; |         return Errno::MFILE; | ||||||
|     case Network::Errno::PIPE: |     case Network::Errno::PIPE: | ||||||
|         return Errno::PIPE; |         return Errno::PIPE; | ||||||
|  |     case Network::Errno::CONNREFUSED: | ||||||
|  |         return Errno::CONNREFUSED; | ||||||
|     case Network::Errno::NOTCONN: |     case Network::Errno::NOTCONN: | ||||||
|         return Errno::NOTCONN; |         return Errno::NOTCONN; | ||||||
|     case Network::Errno::TIMEDOUT: |     case Network::Errno::TIMEDOUT: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user