mirror of
https://github.com/samba-team/samba.git
synced 2025-11-07 12:23:51 +03:00
r25010: Avoid uses of pstring
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
c57869e262
commit
cce7785474
@@ -20,7 +20,6 @@
|
|||||||
/* DOS error codes. please read doserr.h */
|
/* DOS error codes. please read doserr.h */
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
#include "pstring.h"
|
|
||||||
|
|
||||||
struct werror_code_struct {
|
struct werror_code_struct {
|
||||||
const char *dos_errstr;
|
const char *dos_errstr;
|
||||||
@@ -133,7 +132,7 @@ static const struct werror_code_struct dos_errs[] =
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
const char *win_errstr(WERROR werror)
|
const char *win_errstr(WERROR werror)
|
||||||
{
|
{
|
||||||
static pstring msg;
|
static char msg[40];
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|
||||||
while (dos_errs[idx].dos_errstr != NULL) {
|
while (dos_errs[idx].dos_errstr != NULL) {
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
/* NT error codes. please read nterr.h */
|
/* NT error codes. please read nterr.h */
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
#include "pstring.h"
|
|
||||||
#include "libcli/ldap/ldap.h"
|
#include "libcli/ldap/ldap.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -862,7 +861,7 @@ const char *get_friendly_nt_error_msg(NTSTATUS nt_code)
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
const char *get_nt_error_c_code(NTSTATUS nt_code)
|
const char *get_nt_error_c_code(NTSTATUS nt_code)
|
||||||
{
|
{
|
||||||
static pstring out;
|
static char out[40];
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|
||||||
while (nt_errs[idx].nt_errstr != NULL) {
|
while (nt_errs[idx].nt_errstr != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user