Add a dash of static.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 31 Aug 2002 08:51:38 +0000 (08:51 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 31 Aug 2002 08:51:38 +0000 (08:51 +0000)
source/libsmb/clierror.c
source/libsmb/nterr.c

index 591c04db22dd00dcd71c54c0a4eed2fea218b6d8..e1507c6048e6a4c0c2f9e1d26e855145781a59fb 100644 (file)
@@ -156,7 +156,7 @@ void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *ecode)
 
 /* Return a UNIX errno from a dos error class, error number tuple */
 
-int cli_errno_from_dos(uint8 eclass, uint32 num)
+static int cli_errno_from_dos(uint8 eclass, uint32 num)
 {
        if (eclass == ERRDOS) {
                switch (num) {
@@ -205,7 +205,7 @@ static struct {
        {NT_STATUS(0), 0}
 };
 
-int cli_errno_from_nt(NTSTATUS status)
+static int cli_errno_from_nt(NTSTATUS status)
 {
        int i;
         DEBUG(10,("cli_errno_from_nt: 32 bit codes: code=%08x\n", NT_STATUS_V(status)));
index e2da6318e1dbd906cad9ddd13005ace8cf5c872d..02fd53fc056a23c667aded3fe8da40d8b78a2602 100644 (file)
@@ -28,7 +28,7 @@ typedef const struct
        NTSTATUS nt_errcode;
 } nt_err_code_struct;
 
-nt_err_code_struct nt_errs[] =
+static nt_err_code_struct nt_errs[] =
 {
        { "NT_STATUS_OK", NT_STATUS_OK },
        { "NT_STATUS_UNSUCCESSFUL", NT_STATUS_UNSUCCESSFUL },