Skip to content

Compile error #5

@markand

Description

@markand

Hello,

I wanted to try the example project on Arch Linux but I get the following error. Looks like the generated file seems incomplete?

cc -g -W -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter  -DDATADIR=\"/data\"   -c -o db.o db.c
db.c: In function ‘db_user_get_creds’:
db.c:335:62: error: expected expression before ‘!=’ token
  335 |                 if (v2 == NULL || strcmp(crypt(v2, p->hash), !=)  0) {
      |                                                              ^~
db.c:335:65: error: expected ‘)’ before numeric constant
  335 |                 if (v2 == NULL || strcmp(crypt(v2, p->hash), !=)  0) {
      |                    ~                                            ^ ~
      |                                                                 )
make: *** [<builtin>: db.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions