Signed-off-by: Alejandro Colomar <alx@kernel.org>
#include <syslog.h>
#include "string/strcmp/streq.h"
-#include "string/strcmp/strprefix.h"
+#include "string/strcmp/strcaseprefix.h"
#define IMMEDIATE_CHANGE /* Expire newly created password, must be changed
fflush (stdout);
safeget (foo, sizeof (foo));
- done = bad = correct = (strprefix(foo, "y") || strprefix(foo, "Y"));
+ done = bad = correct = strcaseprefix(foo, "y");
if (bad != 1)
printf ("\nUser [%s] not added\n", usrname);
#include <stdlib.h>
#include "prototypes.h"
-#include "string/strcmp/strprefix.h"
+#include "string/strcmp/strcaseprefix.h"
/*
static int
rpmatch(const char *response)
{
- if (strprefix(response, "y") || strprefix(response, "Y"))
+ if (strcaseprefix(response, "y"))
return 1;
- if (strprefix(response, "n") || strprefix(response, "N"))
+ if (strcaseprefix(response, "n"))
return 0;
return -1;