diff options
| author | FreeArtMan <dos21h@gmail.com> | 2019-09-30 18:19:42 +0100 | 
|---|---|---|
| committer | FreeArtMan <dos21h@gmail.com> | 2019-09-30 18:19:42 +0100 | 
| commit | 8a8e0941dd2ab5f089662362a30c91e16de18ce0 (patch) | |
| tree | 567835cfd70a4632be6f8fd7d31e55641111b677 /cmd | |
| parent | 1466036b3e0771e73501bcf573d9e8efc6f62e37 (diff) | |
| download | ihe-8a8e0941dd2ab5f089662362a30c91e16de18ce0.tar.gz ihe-8a8e0941dd2ab5f089662362a30c91e16de18ce0.zip | |
Update to compile on other boxes
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/cmd_pagedown.c | 12 | ||||
| -rw-r--r-- | cmd/cmd_pageup.c | 12 | 
2 files changed, 12 insertions, 12 deletions
| diff --git a/cmd/cmd_pagedown.c b/cmd/cmd_pagedown.c index 8c4e3c4..6b3af7f 100644 --- a/cmd/cmd_pagedown.c +++ b/cmd/cmd_pagedown.c @@ -20,14 +20,14 @@ int c_pagedown( cmd_arg_t *arg )  	int ret=-1;  	int i,j; -	printf("Set file position\n"); +	//printf("Set file position\n");  	//move position  	int pos = file_pos(g_file); -	printf("pos %d\n",pos); -	printf("buf size %d\n",g_buf->size()); +	//printf("pos %d\n",pos); +	//printf("buf size %d\n",g_buf->size());  	pos += g_buf->size(); -	printf("pos %d\n",pos); +	//printf("pos %d\n",pos);  	file_seekp(g_file, pos);  	//read from file @@ -37,7 +37,7 @@ int c_pagedown( cmd_arg_t *arg )  		g_buf->realloc(g_file->blk_size);  	} -	printf("read file\n"); +	//printf("read file\n");  	char *buf_ptr;  	int sz; @@ -45,7 +45,7 @@ int c_pagedown( cmd_arg_t *arg )  	sz = g_buf->size();  	//printf("sz %d ptr %lx",sz,buf_ptr);  	ret = file_read_blk( g_file, (uint8_t *)buf_ptr, sz ); -	printf("Readed %d bytes\n", ret); +	//printf("Readed %d bytes\n", ret);  	if ( (ret >= 0) && (ret <= g_buf->size()) )  	{  		g_buf->set_size(ret); diff --git a/cmd/cmd_pageup.c b/cmd/cmd_pageup.c index 4e0612b..9ee3050 100644 --- a/cmd/cmd_pageup.c +++ b/cmd/cmd_pageup.c @@ -20,14 +20,14 @@ int c_pageup( cmd_arg_t *arg )  	int ret=-1;  	int i,j; -	printf("Set file position\n"); +	//printf("Set file position\n");  	//move position  	int pos = file_pos(g_file); -	printf("pos %d\n",pos); -	printf("buf size %d\n",g_buf->size()); +	//printf("pos %d\n",pos); +	//printf("buf size %d\n",g_buf->size());  	pos -= g_buf->size(); -	printf("pos %d\n",pos); +	//printf("pos %d\n",pos);  	file_seekp(g_file, pos);  	//read from file @@ -37,7 +37,7 @@ int c_pageup( cmd_arg_t *arg )  		g_buf->realloc(g_file->blk_size);  	} -	printf("read file\n"); +	//printf("read file\n");  	char *buf_ptr;  	int sz; @@ -45,7 +45,7 @@ int c_pageup( cmd_arg_t *arg )  	sz = g_buf->size();  	//printf("sz %d ptr %lx",sz,buf_ptr);  	ret = file_read_blk( g_file, (uint8_t *)buf_ptr, sz ); -	printf("Readed %d bytes\n", ret); +	//printf("Readed %d bytes\n", ret);  	if ( (ret >= 0) && (ret <= g_buf->size()) )  	{  		g_buf->set_size(ret); | 
