mirror of
				https://github.com/CPunch/Laika.git
				synced 2025-11-03 20:10:33 +00:00 
			
		
		
		
	minor refactoring
- removed unused alloca.h header in lsocket.c - fixed type cast warning in sterm.c
This commit is contained in:
		
							
								
								
									
										3
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							@@ -26,7 +26,8 @@
 | 
			
		||||
        "limits": "c",
 | 
			
		||||
        "*.in": "cpp",
 | 
			
		||||
        "lerror.h": "c",
 | 
			
		||||
        "stdbool.h": "c"
 | 
			
		||||
        "stdbool.h": "c",
 | 
			
		||||
        "alloca.h": "c"
 | 
			
		||||
    },
 | 
			
		||||
    "cSpell.words": [
 | 
			
		||||
        "cnc's",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,3 @@
 | 
			
		||||
#include <alloca.h>
 | 
			
		||||
 | 
			
		||||
#include "lerror.h"
 | 
			
		||||
#include "lmem.h"
 | 
			
		||||
#include "lpolllist.h"
 | 
			
		||||
 
 | 
			
		||||
@@ -81,7 +81,7 @@ char shellT_getch(void) {
 | 
			
		||||
    int r;
 | 
			
		||||
    char in;
 | 
			
		||||
 | 
			
		||||
    if ((r = shellT_readRawInput(&in, 1)) > 0) {
 | 
			
		||||
    if ((r = shellT_readRawInput((uint8_t*)&in, 1)) > 0) {
 | 
			
		||||
        return in;
 | 
			
		||||
    } else {
 | 
			
		||||
        return r;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user