Add missing break
[debian-nspark.git] / garble.c
blobe33dae63d3e7d0c9a6dd30295678a6b7d74dab3f
1 #include "garble.h"
3 static char *password;
4 static char *passp;
6 void
7 set_password(char *p)
9 password = p;
12 void
13 init_garble()
15 passp = password;
18 Byte
19 ungarble(Byte byte)
21 if (password) {
22 byte ^= *passp++;
23 if (!*passp) {
24 passp = password;
28 return byte;
31 Byte
32 garble(Byte byte)
34 /* Garble and ungarble are the same thing */
35 return ungarble(byte);