From abbd11b06b1428651fb054661ec2475632701037 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Micha=C5=82=20Bartoszkiewicz?= <mbartoszkiewicz@gmail.com>
Date: Sat, 27 Nov 2010 00:50:15 +0100
Subject: [PATCH] =?utf8?q?Dodanie=20atrybutu=20=E2=80=9Estatic=E2=80=9D=20?=
 =?utf8?q?do=20funkcji=20i=20zmiennych.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

---
 choinka.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/choinka.c b/choinka.c
index 26f6c43..c02dc72 100644
--- a/choinka.c
+++ b/choinka.c
@@ -19,7 +19,7 @@ typedef struct {
   int kolor;
 } atrybut;
 
-atrybut const bombki[] = {
+static atrybut const bombki[] = {
   {A_POGRUBIONY, KOLOR_CZERWONY},
   {A_POGRUBIONY, KOLOR_NIEBIESKI},
   {A_POGRUBIONY, KOLOR_BRAZOWY},
@@ -27,14 +27,14 @@ atrybut const bombki[] = {
   {A_POGRUBIONY, KOLOR_CYJAN},
   {A_POGRUBIONY, KOLOR_BIALY},
 };
-int const ile_b = sizeof bombki / sizeof *bombki;
+static int const ile_b = sizeof bombki / sizeof *bombki;
 
-atrybut const choinka = {0, KOLOR_ZIELONY};
-atrybut const podstawa = {0, KOLOR_BRAZOWY};
-atrybut const podpis = {A_POGRUBIONY, KOLOR_CZERWONY};
-atrybut const gwiazdka = {A_POGRUBIONY, KOLOR_BRAZOWY};
+static atrybut const choinka = {0, KOLOR_ZIELONY};
+static atrybut const podstawa = {0, KOLOR_BRAZOWY};
+static atrybut const podpis = {A_POGRUBIONY, KOLOR_CZERWONY};
+static atrybut const gwiazdka = {A_POGRUBIONY, KOLOR_BRAZOWY};
 
-void inicjuj_rng()
+static void inicjuj_rng()
 {
   unsigned ziarno = 0;
   FILE* f = fopen("/dev/urandom", "rb");
@@ -51,7 +51,7 @@ void inicjuj_rng()
   srand(ziarno);
 }
 
-char const rysunek[] =
+static char const rysunek[] =
 "           *\n"
 "          /.\\\n"
 "         /..'\\\n"
@@ -62,7 +62,7 @@ char const rysunek[] =
 "  jgs  ^^^[_]^^^\n"
 ;
 
-void ustaw(atrybut const* attr)
+static void ustaw(atrybut const* attr)
 {
   static atrybut ostatni = {-1, -1};
   if (ostatni.attr == attr->attr && ostatni.kolor == attr->kolor) return;
-- 
2.49.0