summaryrefslogtreecommitdiff
path: root/atari/about.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-19 16:37:09 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-19 16:37:09 +0100
commiteec68e54330b9c3dfda43cb9699d2f0f57334d79 (patch)
treec1f3ffa0116fce8b15e14a8da4cbca0dfd306a3e /atari/about.c
parentb9ded6c73526190d2cc576b9a5d95a25460be9ff (diff)
downloadnetsurf-eec68e54330b9c3dfda43cb9699d2f0f57334d79.tar.gz
netsurf-eec68e54330b9c3dfda43cb9699d2f0f57334d79.tar.bz2
Scope reduce some variables.
Diffstat (limited to 'atari/about.c')
-rw-r--r--atari/about.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/atari/about.c b/atari/about.c
index dd6e39cff..174e27b20 100644
--- a/atari/about.c
+++ b/atari/about.c
@@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <limits.h>
-#include <unistd.h>
-#include <string.h>
+#include <limits.h>
+#include <unistd.h>
+#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
@@ -28,7 +28,7 @@
#include "atari/plot/plot.h"
#include "atari/gemtk/gemtk.h"
#include "atari/res/netsurf.rsh"
-#include "atari/about.h"
+#include "atari/about.h"
#include "testament.h"
#include "utils/useragent.h"
@@ -37,7 +37,7 @@
#include "utils/messages.h"
-#include "curl/curlver.h"
+#include "curl/curlver.h"
static OBJECT * about_form = NULL;
@@ -50,9 +50,6 @@ static short __CDECL about_userdraw(PARMBLK *parmblock)
{
short pxy[8];
short dummy;
- int content_len;
- char *content;
- short cur_x, cur_y;
short cheight = 8, cwidth = gl_wchar;
char c[2] = {0,0};
@@ -73,6 +70,9 @@ static short __CDECL about_userdraw(PARMBLK *parmblock)
};
if(parmblock->pb_currstate == parmblock->pb_prevstate){
+ short cur_x, cur_y;
+ char *content;
+ int content_len;
content = (char*)parmblock->pb_parm;
content_len = strlen(content);