[Stgt-devel] [PATCH] missing prototypes
Pete Wyckoff
pw
Wed Dec 26 22:09:31 CET 2007
Fix some missing prototype warnings.
Signed-off-by: Pete Wyckoff <pw at osc.edu>
---
usr/log.c | 4 ++--
usr/smc.c | 3 ++-
usr/spc.c | 4 ++--
usr/util.c | 1 +
4 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/usr/log.c b/usr/log.c
index 414f9f4..4a30f05 100644
--- a/usr/log.c
+++ b/usr/log.c
@@ -142,7 +142,7 @@ static void dump_logarea (void)
}
#endif
-int log_enqueue (int prio, const char * fmt, va_list ap)
+static int log_enqueue(int prio, const char *fmt, va_list ap)
{
int len, fwd;
char buff[MAX_MSG_SIZE];
@@ -194,7 +194,7 @@ int log_enqueue (int prio, const char * fmt, va_list ap)
return 0;
}
-int log_dequeue (void * buff)
+static int log_dequeue(void *buff)
{
struct logmsg * src = (struct logmsg *)la->head;
struct logmsg * dst = (struct logmsg *)buff;
diff --git a/usr/smc.c b/usr/smc.c
index 04ce481..a6085b5 100644
--- a/usr/smc.c
+++ b/usr/smc.c
@@ -507,7 +507,8 @@ static int slot_insert(struct list_head *head, int element_type, int address)
*
* Return NULL if no match
*/
-struct slot *slot_lookup(struct list_head *head, int element_type, int address)
+static struct slot *slot_lookup(struct list_head *head, int element_type,
+ int address)
{
struct slot *s;
diff --git a/usr/spc.c b/usr/spc.c
index 0d52164..db8124d 100644
--- a/usr/spc.c
+++ b/usr/spc.c
@@ -110,7 +110,7 @@
#define DESG_MD5 7
#define DESG_SCSI 8
-void update_vpd_80(struct scsi_lu *lu, void *sn)
+static void update_vpd_80(struct scsi_lu *lu, void *sn)
{
struct vpd *vpd_pg = lu->attrs.lu_vpd[0];
char *data = (char *)vpd_pg->data;
@@ -128,7 +128,7 @@ void update_vpd_80(struct scsi_lu *lu, void *sn)
}
}
-void update_vpd_83(struct scsi_lu *lu, void *id)
+static void update_vpd_83(struct scsi_lu *lu, void *id)
{
struct vpd *vpd_pg = lu->attrs.lu_vpd[3];
uint8_t *data = vpd_pg->data;
diff --git a/usr/util.c b/usr/util.c
index 9f54820..e91453d 100644
--- a/usr/util.c
+++ b/usr/util.c
@@ -32,6 +32,7 @@
#include <sys/sysmacros.h>
#include "log.h"
+#include "util.h"
int chrdev_open(char *modname, char *devpath, uint8_t minor, int *fd)
{
--
1.5.3.6
More information about the stgt
mailing list