]> arthur.barton.de Git - netatalk.git/commitdiff
declare more stuff static
authordidg <didg>
Fri, 16 Oct 2009 00:11:42 +0000 (00:11 +0000)
committerdidg <didg>
Fri, 16 Oct 2009 00:11:42 +0000 (00:11 +0000)
etc/afpd/directory.c
etc/afpd/icon.h

index 0fef50d54fa6e74e75e5f86b8facab0ee9fd4b2b..4611e5a7084bb115174e44fe38dceca23a163d17 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: directory.c,v 1.109 2009-10-15 12:08:22 didg Exp $
+ * $Id: directory.c,v 1.110 2009-10-16 00:11:42 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1530,7 +1530,7 @@ void setdiroffcnt(struct dir *dir, struct stat *st,  u_int32_t count)
  * is our cached offspring count valid?
 */
 
-int diroffcnt(struct dir *dir, struct stat *st)
+static int diroffcnt(struct dir *dir, struct stat *st)
 {
     return st->st_ctime == dir->ctime;
 }
index cfaa563454a0b11758752c8ac6260489262ff573..47815e3d85de794eb5be2039e42457ec25496ee4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: icon.h,v 1.4 2001-12-10 20:16:54 srittau Exp $
+ * $Id: icon.h,v 1.5 2009-10-16 00:11:42 didg Exp $
  *
  * Copyright (c) 1990,1994 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -11,7 +11,7 @@
 #include <sys/cdefs.h>
 #include "globals.h"
 
-const unsigned char apple_atalk_icon[] = { /* default appletalk icon */
+static const unsigned char apple_atalk_icon[] = { /* default appletalk icon */
     0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,  0x00,
     0x00,  0x01,  0x00,  0x00,  0x00,  0x02,  0x9F,  0xE0,
     0x00,  0x04,  0x50,  0x30,  0x00,  0x08,  0x30,  0x28,
@@ -46,7 +46,7 @@ const unsigned char apple_atalk_icon[] = { /* default appletalk icon */
     0xBF,  0xFF,  0xFD,  0xF4,  0xBF,  0xFF,  0xF8,  0xF4
 };
 
-const unsigned char apple_tcp_icon[] = { /* default asip icon */
+static const unsigned char apple_tcp_icon[] = { /* default asip icon */
     0x30,  0x00,  0x8f,  0xf8,  0xcc,  0x01,  0x48,  0x0c,
     0xb3,  0x32,  0x28,  0x0a,  0x8c,  0xcc,  0x7c,  0x0f,
     0x83,  0x02,  0xff,  0x01,  0x80,  0xc3,  0xc3,  0x81,
@@ -82,7 +82,7 @@ const unsigned char apple_tcp_icon[] = { /* default asip icon */
 };
 
 #if defined( ultrix )
-const unsigned char icon[] = { /* declogo */
+static const unsigned char icon[] = { /* declogo */
     0x0, 0x80, 0x0, 0x0, 0x1, 0xC0, 0x0, 0x0,
     0x3, 0xE0, 0x0, 0x0, 0x7, 0xF0, 0x0, 0x0,
     0xF, 0xB0, 0x0, 0x0, 0x13, 0x6C, 0x0, 0x0,
@@ -119,7 +119,7 @@ const unsigned char icon[] = { /* declogo */
 
 #else
 #if defined( vax )
-const unsigned char icon[] = { /* daemon */
+static const unsigned char icon[] = { /* daemon */
     0x0, 0x0, 0x0, 0x0, 0x0, 0x80, 0x2, 0x0,
     0x1, 0x80, 0x3, 0x0, 0x2, 0x80, 0x2, 0x80,
     0x2, 0x80, 0x2, 0x80, 0x4, 0x80, 0x2, 0x40,
@@ -156,7 +156,7 @@ const unsigned char icon[] = { /* daemon */
 
 #else
 #if defined( sun )
-const unsigned char icon[] = { /* sunlogo */
+static const unsigned char icon[] = { /* sunlogo */
     0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x80, 0x0,
     0x0, 0x2, 0x40, 0x0, 0x0, 0x2, 0x20, 0x0,
     0x0, 0x9, 0x10, 0x0, 0x0, 0x4, 0x88, 0x0,
@@ -193,7 +193,7 @@ const unsigned char icon[] = { /* sunlogo */
 
 #else
 #if defined( _IBMR2 )
-const unsigned char icon[] = { /* hagar */
+static const unsigned char icon[] = { /* hagar */
     0x0, 0x0, 0x0, 0x0, 0x18, 0x0, 0x0, 0x18,
     0x24, 0x0, 0x0, 0x24, 0x44, 0x3, 0xC0, 0x22,
     0x44, 0xC, 0x30, 0x22, 0x42, 0x30, 0xC, 0x42,
@@ -229,7 +229,7 @@ const unsigned char icon[] = { /* hagar */
 };
 
 #else
-const unsigned char icon[] = { /* globe */
+static const unsigned char icon[] = { /* globe */
     0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0xF0, 0x0,
     0x0, 0x30, 0xC, 0x0, 0x0, 0xC0, 0x3, 0x0,
     0x1, 0x80, 0x3, 0x80, 0x3, 0xE2, 0x1F, 0xC0,