aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2011-06-08 20:26:00 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2011-06-08 20:26:00 +0200
commit4736edd469d07685f6ceeb4bfe438ba48335bd81 (patch)
tree554ed0f90b4e21f86383b0c6e66827c2b32f69af /st.c
parent189a81caa11a278079fde3e610870e07870d8968 (diff)
downloadst-4736edd469d07685f6ceeb4bfe438ba48335bd81.tar.gz
st-4736edd469d07685f6ceeb4bfe438ba48335bd81.tar.bz2
applied parts of "anonymous" cleanup patch.
Diffstat (limited to 'st.c')
-rw-r--r--st.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/st.c b/st.c
index bc17df3..6ba5c4c 100644
--- a/st.c
+++ b/st.c
@@ -483,8 +483,7 @@ selcopy(void) {
void
selnotify(XEvent *e) {
- unsigned long nitems;
- unsigned long ofs, rem;
+ unsigned long nitems, ofs, rem;
int format;
unsigned char *data;
Atom type;
@@ -767,7 +766,7 @@ tnew(int col, int row) {
term.row = row, term.col = col;
term.line = malloc(term.row * sizeof(Line));
term.alt = malloc(term.row * sizeof(Line));
- for(row = 0 ; row < term.row; row++) {
+ for(row = 0; row < term.row; row++) {
term.line[row] = malloc(term.col * sizeof(Glyph));
term.alt [row] = malloc(term.col * sizeof(Glyph));
}