summaryrefslogtreecommitdiff
path: root/pico/osdep
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-05-21 20:58:51 -0600
committerEduardo Chappa <chappa@washington.edu>2021-05-21 20:58:51 -0600
commitd31cd71e5a3d73e20cfff89968c7b932d451f75c (patch)
tree264309197f0d847683df0ef960f87d5734c5f225 /pico/osdep
parent2e57dfe03e4df802d530ae217415d50419ab4e20 (diff)
downloadalpine-d31cd71e5a3d73e20cfff89968c7b932d451f75c.tar.xz
* Clear out some gcc warnings, and code improvement. Work in progress.
Diffstat (limited to 'pico/osdep')
-rw-r--r--pico/osdep/altedit.c2
-rw-r--r--pico/osdep/shell.c2
-rw-r--r--pico/osdep/signals.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/pico/osdep/altedit.c b/pico/osdep/altedit.c
index d8717588..e8cc80c4 100644
--- a/pico/osdep/altedit.c
+++ b/pico/osdep/altedit.c
@@ -109,7 +109,7 @@ alt_editor(int f, int n)
if(Pmaster->alt_ed){
char **lp, *wsp, *path, fname[MAXPATH+1];
- int c;
+ int c = '\0';
for(lp = Pmaster->alt_ed; *lp && **lp; lp++){
if((wsp = strpbrk(*lp, " \t")) != NULL){
diff --git a/pico/osdep/shell.c b/pico/osdep/shell.c
index c22e9176..7554fdb8 100644
--- a/pico/osdep/shell.c
+++ b/pico/osdep/shell.c
@@ -98,7 +98,7 @@ bktoshell(int f, int n)
if(gmode&MDSPWN){
char *shell;
- int dummy;
+ int dummy = 1;
vttidy();
movecursor(0, 0);
diff --git a/pico/osdep/signals.c b/pico/osdep/signals.c
index 6886e5c0..00a96902 100644
--- a/pico/osdep/signals.c
+++ b/pico/osdep/signals.c
@@ -103,7 +103,7 @@ do_hup_signal(int sig)
RETSIGTYPE
winch_handler(int sig)
{
- int i;
+ int i = 0;
signal(SIGWINCH, winch_handler);
if(wheadp != NULL)
ttresize();